codemp/.github/workflows/test.yml

79 lines
1.9 KiB
YAML
Raw Normal View History

name: test
on:
2024-09-25 21:34:34 +02:00
push:
pull_request:
2024-09-25 21:33:53 +02:00
types: [synchronize, review_requested]
env:
2023-08-16 23:39:50 +02:00
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
test-unit:
runs-on: ubuntu-latest
2023-08-16 23:39:50 +02:00
strategy:
2024-08-17 18:48:42 +02:00
fail-fast: false
2023-08-16 23:39:50 +02:00
matrix:
toolchain:
- stable
- beta
steps:
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose
test-build:
needs: [test-unit]
runs-on: ${{ matrix.runner }}
2024-09-17 12:53:53 +02:00
strategy:
fail-fast: false
matrix:
runner:
- ubuntu-latest
- windows-latest
- macos-latest
features:
- java
- js
- py
- luajit
- lua54
2024-09-17 12:53:53 +02:00
toolchain:
- stable
- beta
steps:
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo build --release --verbose --features=${{ matrix.features }}
2024-10-30 13:27:25 +01:00
test-functional:
needs: [test-unit]
2024-10-30 13:27:25 +01:00
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose --features=test-e2e
env:
CODEMP_TEST_USERNAME_ALICE: ${{ secrets.CODEMP_TEST_USERNAME_ALICE }}
CODEMP_TEST_PASSWORD_ALICE: ${{ secrets.CODEMP_TEST_PASSWORD_ALICE }}
CODEMP_TEST_USERNAME_BOB: ${{ secrets.CODEMP_TEST_USERNAME_BOB }}
CODEMP_TEST_PASSWORD_BOB: ${{ secrets.CODEMP_TEST_PASSWORD_BOB }}