diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 824042ca..67e9842a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,18 +13,23 @@ jobs: os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} - - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + node-version: "20" + + - name: Cache node modules + uses: actions/cache@v4 with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + path: | + node_modules + ~/.cache/yarn + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} restore-keys: | - ${{ matrix.os }}-yarn- + ${{ runner.os }}-yarn- + - run: yarn --frozen-lockfile - run: yarn build - run: yarn lint