ROLL-16 Tickets #206
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
test: | |
name: Check formatting and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
target: wasm32-unknown-unknown | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Run tests | |
run: cargo nextest run --tests | |
- name: Publish results | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
if: always() | |
with: | |
junit_files: "target/nextest/default/*.xml" |