Skip to content

Commit

Permalink
add workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkuba committed Aug 31, 2023
1 parent 0c7124f commit 18d726b
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Benchmark Tests

on: workflow_dispatch

jobs:
node-tests:
strategy:
fail-fast: false
matrix:
node_version:
# - "14"
# - "16"
- "18"
runs-on: ubuntu-latest
env:
NPM_CONFIG_UNSAFE_PERM: true
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}

- run: npm install -g npm@latest

- name: restore lerna
id: cache
uses: actions/cache@v3
with:
path: |
node_modules
package-lock.json
packages/*/node_modules
packages/*/package-lock.json
experimental/packages/*/node_modules
experimental/packages/*/package-lock.json
key: node-tests-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}-04292022

- name: Bootstrap
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --ignore @opentelemetry/selenium-tests
- name: Build 🔧
run: |
npm run compile
- name: Benchmark tests
run: |
npm run test:bench | tee benchmarks.txt
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'benchmarkjs'
output-file-path: benchmarks.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true

0 comments on commit 18d726b

Please sign in to comment.