Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Feb 24, 2024
1 parent f397248 commit 4ad47af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .changeset/kind-shoes-switch.md

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,28 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [18, 20, latest]
node-version: [18, 20, latest]
runner_index: [0, 1, 2, 3]
runners_per_version: [4]
name: Test Node ${{ matrix.node }} (${{ matrix.runner_index }}/${{ matrix.runners_per_version }})
name: Test Node ${{ matrix.node-version }} (${{ matrix.runner_index }})
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable --immutable-cache
- run: yarn build
- run: yarn test:unit
env:
CI_NODE_INDEX: ${{ matrix.runner_index }}
CI_NODE_TOTAL: ${{ matrix.runners_per_version }}
- run: yarn cov:lcov
if: ${{ matrix.node-version }} == 20
- name: Upload test coverage
if: ${{ matrix.node-version }} == 20
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: yarn version
version: yarn changeset:version
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"doc:extract": "mkdir -p build/api && api-extractor run --local --typescript-compiler-folder node_modules/typescript",
"doc:generate": "api-documenter markdown -i temp -o build/api/markdown",
"doc:check-api": "api-extractor run --typescript-compiler-folder node_modules/typescript",
"version": "yarn changeset version && yarn fix:prettier",
"changeset:version": "yarn changeset version && yarn fix:prettier",
"release": "yarn build && yarn changeset publish"
},
"engines": {
Expand Down

0 comments on commit 4ad47af

Please sign in to comment.