diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6ce0db..161bb3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,13 +6,21 @@ jobs: ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main + name: Checkout repository + + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/.next/cache + key: ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }} + restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}- - - name: Install dependencies - run: yarn install --frozen-lockfile + - name: Install dependencies + run: yarn install --frozen-lockfile - - name: Check typescript - run: yarn type:check + - name: Check typescript + run: yarn run type:check - - name: Check eslint - run: yarn lint \ No newline at end of file + - name: Check eslint + run: yarn run lint