Skip to content

Commit

Permalink
add test and lint scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-richter committed Aug 19, 2024
1 parent 0156a02 commit bd65619
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,54 @@ env:
CARGO_TERM_COLOR: always

jobs:
tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
# You can add more, for any target you'd like!
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: clippy

- name: cargo clippy
with:
use-cross: true
command: cargo clippy --no-deps

- name: cargo test
with:
use-cross: true
command: cargo test

lint:
runs-on: ${{ matrix.os }}

strategy:
matrix:
# You can add more, for any target you'd like!
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: rustfmt

build:

runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit bd65619

Please sign in to comment.