feat: add enum variants #325
Workflow file for this run
This file contains hidden or 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 suite | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test_release: | |
name: Run tests (release) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --release | |
tests_debug: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- beta | |
- nightly | |
- 1.76.0 # Minimum supported version | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
env: | |
RUSTFLAGS: '-Awarnings' # The `stable` job already emits warnings; no need to duplicate | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
test_wasm: | |
name: Run wasm tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Run tests | |
run: wasm-pack test --node serde_dhall | |
test_windows: | |
name: Run tests on windows | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |