Skip to content

Commit

Permalink
ci(test): only run fn/build tests after unit
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Oct 30, 2024
1 parent 60b4c3d commit e0c913b
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,11 @@ permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.runner }}
test-unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
runner:
- ubuntu-latest
- windows-latest
- macos-latest
features:
- java
- js
- py
- luajit
- lua54
toolchain:
- stable
- beta
Expand All @@ -38,13 +28,24 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo build --release --verbose --features=${{ matrix.features }}
- run: cargo test --verbose

test-unit:
runs-on: ubuntu-latest
test-build:
needs: [test-unit]
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner:
- ubuntu-latest
- windows-latest
- macos-latest
features:
- java
- js
- py
- luajit
- lua54
toolchain:
- stable
- beta
Expand All @@ -56,9 +57,10 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose
- run: cargo build --release --verbose --features=${{ matrix.features }}

test-functional:
needs: [test-unit]
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v3
Expand Down

0 comments on commit e0c913b

Please sign in to comment.