Skip to content

Commit

Permalink
ci: 🎡 upgrade github actions to v4 (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai authored Jun 19, 2024
1 parent 74f2e0b commit cb82806
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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') }}
Expand All @@ -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') }}
Expand Down

0 comments on commit cb82806

Please sign in to comment.