codemp/.github/workflows/test.yml

38 lines
799 B
YAML
Raw Normal View History

name: test
on:
2023-08-16 23:39:50 +02:00
push:
branches:
- ci
2023-08-16 23:39:50 +02:00
- dev
env:
2023-08-16 23:39:50 +02:00
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
test:
2023-08-16 23:39:50 +02:00
runs-on: ubuntu-latest
strategy:
2024-08-17 18:48:42 +02:00
fail-fast: false
2023-08-16 23:39:50 +02:00
matrix:
2024-08-17 18:38:37 +02:00
features:
- rust
- lua
- java
- js
- python
2023-08-16 23:39:50 +02:00
toolchain:
- stable
2023-08-16 23:41:57 +02:00
# - beta
# - nightly
2024-08-17 18:38:37 +02:00
# TODO should re-enable future toolchains so we get warnings on breaking changes
2023-08-16 23:39:50 +02:00
steps:
- uses: arduino/setup-protoc@v3
2023-08-16 23:39:50 +02:00
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
2024-08-17 18:38:37 +02:00
- run: cargo build --verbose --features=${{ matrix.features }}
- run: cargo test --verbose --features=${{ matrix.features }}