2024-09-09 17:08:24 +02:00
|
|
|
name: test
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
on:
|
2023-08-16 23:39:50 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
env:
|
2023-08-16 23:39:50 +02:00
|
|
|
CARGO_TERM_COLOR: always
|
2023-08-16 23:38:34 +02:00
|
|
|
|
2024-09-09 17:08:24 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-08-16 23:38:34 +02:00
|
|
|
jobs:
|
2024-09-09 17:08:24 +02:00
|
|
|
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
|
2024-09-10 14:42:31 +02:00
|
|
|
- luajit # should we test with lua54 instead?
|
2024-08-17 18:38:37 +02:00
|
|
|
- java
|
|
|
|
- js
|
2024-09-13 22:21:53 +02:00
|
|
|
- py
|
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:
|
2024-09-09 17:30:23 +02:00
|
|
|
- uses: arduino/setup-protoc@v3
|
2024-09-10 14:51:58 +02:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2024-09-09 19:47:42 +02:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.toolchain }}
|
2024-08-17 18:38:37 +02:00
|
|
|
- run: cargo test --verbose --features=${{ matrix.features }}
|