Collected changes, and JUnit in CI #38
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: Rust | ||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ macos-latest, windows-latest, ubuntu-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run Rust tests | ||
run: cargo test --verbose | ||
- name: Run Java tests | ||
run: make check_java | ||
# We do not have Make set up on Windows, and for now we use Make to run | ||
# the Java tests: | ||
if: ${{ !startsWith(matrix.os, "windows") }} | ||
Check failure on line 33 in .github/workflows/rust.yml
|
||
coverage: | ||
runs-on: [ ubuntu-latest ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.16.0' | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 |