Added tests for new error attributes #1574
Workflow file for this run
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, pull_request] | |
jobs: | |
test-latest: | |
name: Test on Latest Stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Check | |
run: make check | |
- name: Test | |
run: make test | |
test-nightly: | |
name: Test on nightly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- name: Check | |
run: make check | |
- name: Test | |
run: make test | |
## Bugs in older Rust versions for some of our borrowing logic for filters | |
## No longer makes supporting this Rust version possible | |
# build-old-stable: | |
# name: Build on 1.45.0 | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/rust-toolchain@master | |
# with: | |
# toolchain: 1.45.0 | |
# - name: Build | |
# run: cargo build --features=unstable_machinery,builtins,source,json,urlencode,debug,internal_debug | |
# working-directory: ./minijinja | |
# env: | |
# CARGO_NET_GIT_FETCH_WITH_CLI: "true" | |
# CARGO_HTTP_MULTIPLEXING: "false" | |
test-32bit: | |
name: Check on 1.61.0 (32bit) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.61.0 | |
targets: armv5te-unknown-linux-gnueabi | |
- name: Check | |
run: cargo check --all-features -p minijinja --target armv5te-unknown-linux-gnueabi | |
test-fuel-feature: | |
name: Check on 1.61.0 (fuel feature) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.61.0 | |
- name: Check | |
run: cargo check --no-default-features -p minijinja --features fuel | |
test-stable: | |
name: Test on 1.61.0 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.61.0 | |
- name: Test | |
run: make test | |
test-wasi: | |
name: Test on WASI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
targets: wasm32-wasi | |
- name: Install WasmTime | |
run: | | |
curl https://wasmtime.dev/install.sh -sSf | bash | |
curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v4.0.0/wasmtime-v4.0.0-x86_64-linux.tar.xz | |
tar xvf wasmtime-v4.0.0-x86_64-linux.tar.xz | |
echo `pwd`/wasmtime-v4.0.0-x86_64-linux >> $GITHUB_PATH | |
- name: Test | |
run: make wasi-test | |
test-python: | |
name: Test on Python binding | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Test | |
run: make python-test |