Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI workflows with latest action versions #356

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

- 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

- 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 }}
Loading