mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge pull request #100 from AikidoSec/test-on-win
Run unit tests on windows
This commit is contained in:
commit
9901cb8502
1 changed files with 9 additions and 2 deletions
11
.github/workflows/test-on-pr.yml
vendored
11
.github/workflows/test-on-pr.yml
vendored
|
|
@ -6,7 +6,12 @@ jobs:
|
|||
unit-test:
|
||||
name: Run unit tests and linting
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
@ -23,7 +28,7 @@ jobs:
|
|||
safe-chain setup-ci
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm test
|
||||
|
|
@ -35,10 +40,12 @@ jobs:
|
|||
run: npm run typecheck --workspace=packages/safe-chain
|
||||
|
||||
- name: Create package tarball
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: npm pack --workspace=packages/safe-chain
|
||||
|
||||
- name: Upload package tarball
|
||||
uses: actions/upload-artifact@v4
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
with:
|
||||
name: safe-chain-package
|
||||
path: aikidosec-safe-chain-*.tgz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue