Skip to content

Commit

Permalink
fix: run tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Feb 28, 2024
1 parent 8a6bb40 commit a7cde69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 18
node-version: 20
- run: yarn --immutable && yarn build

- name: Run benchmarks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18]
node: [18, 20]
steps:
- uses: actions/checkout@v3
- run: corepack enable
Expand Down
6 changes: 2 additions & 4 deletions packages/as-sha256/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
"asbuild:optimized": "asc assembly/index.ts -b build/optimized.wasm -t build/optimized.wat --runtime minimal --target release --noAssert",
"build:lib": "run -T tsc -p tsconfig.build.json",
"build:web": "run -T webpack --mode production --entry ./index.js --output ./dist/as-sha256.min.js",
"test": "yarn run test:as-ci && yarn run test:unit",
"test": "yarn run test:unit",
"test:unit": "yarn run test:unit:node && yarn run test:unit:browser",
"test:unit:node": "run -T mocha -r ts-node/register test/unit/*.test.ts",
"test:unit:browser": "run -T karma start --single-run --browsers ChromeHeadless,FirefoxHeadless karma.config.js",
"benchmark": "node -r ts-node/register ./node_modules/.bin/benchmark 'test/perf/index.test.ts'",
"benchmark:local": "yarn benchmark --local",
"test:ci": "yarn test:as-ci",
"test:as": "asp --nortrace --verbose",
"test:as-ci": "asp --nortrace 2> /dev/null"
"test:ci": "yarn test:as-ci"
},
"devDependencies": {
"@chainsafe/babel-plugin-inline-binary-import": "^1.0.3",
Expand Down

0 comments on commit a7cde69

Please sign in to comment.