Skip to content

Commit

Permalink
Update CI workflows with latest action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 4, 2024
1 parent 39381c3 commit f66bb07
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 43 deletions.
54 changes: 14 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,65 +23,39 @@ jobs:
check_and_build:
name: Check and build codebase
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
node-version: [18.x]

- name: Get Yarn Cache Directory Path
id: cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use Yarn Cache
uses: actions/cache@v2
id: cache
with:
path: ${{ steps.cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}

- name: Installation ${{ matrix.node-version }}
- name: Installation
run: yarn --prefer-offline --frozen-lockfile --non-interactive

- name: Check Code ${{ matrix.node-version }}
- name: Check Code
run: yarn check:ci

- name: Build Core ${{ matrix.node-version }}
- name: Build Core
run: yarn build

- name: Check size ${{ matrix.node-version }}
- name: Check size
run: yarn size

code_coverage:
name: Check code coverage
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Get Yarn Cache Directory Path
id: cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use Yarn Cache
uses: actions/cache@v2
id: cache
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
path: ${{ steps.cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
cache: 'yarn'
node-version: [18.x]

- name: Installation ${{ matrix.node-version }}
- name: Installation
run: yarn --prefer-offline --frozen-lockfile --non-interactive

- name: Build Code Coverage ${{ matrix.node-version }}
- name: Build Code Coverage
run: yarn test:cover

- name: Coveralls
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.CHANGESETS_TOKEN }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 18

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f66bb07

Please sign in to comment.