Merge remote-tracking branch 'fork/master' into upstream-update #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "v*" | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
env: | |
# The proxy server for install tests uses a self-signed certificate | |
# This allows requests to the proxy by disabling certificate validation | |
NODE_TLS_REJECT_UNAUTHORIZED: 0 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- run: zip x86_64-unknown-linux-gnu.zip cargo-flowistry* flowistry-driver* | |
working-directory: target/debug | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- run: npm ci | |
working-directory: ide | |
- run: xvfb-run -a npm test -- install --zip=../target/debug/x86_64-unknown-linux-gnu.zip | |
working-directory: ide | |
- run: xvfb-run -a npm test | |
working-directory: ide | |
bench: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cargo bench --bench main -- --output-format bencher | tee crates/flowistry/benches/output.txt | |
- uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: 'cargo' | |
output-file-path: crates/flowistry/benches/output.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true |