Skip to content

Commit

Permalink
👷 Setup CI job matrix for cargo test
Browse files Browse the repository at this point in the history
Ensure that Rust unit tests and doctests are checked too. Running on Ubuntu-24.04.
  • Loading branch information
weiji14 committed Jul 8, 2024
1 parent 1009387 commit e9eafef
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,25 @@ on:
types: [ opened, reopened, synchronize ]
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
cargo:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

linux:
runs-on: ubuntu-22.04
strategy:
Expand Down

0 comments on commit e9eafef

Please sign in to comment.