diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edbad41a..77042bfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,14 +6,14 @@ on: - master jobs: yarn-install: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - id: cache name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} @@ -22,14 +22,14 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: yarn install build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [yarn-install] steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} @@ -38,19 +38,19 @@ jobs: run: yarn build - name: Archive build artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: dist path: dist test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [yarn-install] steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Restore node modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}