Skip to content

Merge pull request #29 from Tomasz-Kluczkowski/tests/separate-tests-f… #29

Merge pull request #29 from Tomasz-Kluczkowski/tests/separate-tests-f…

Merge pull request #29 from Tomasz-Kluczkowski/tests/separate-tests-f… #29

Workflow file for this run

name: Lint - Test - Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Linting checks
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Check formatting of code
run: cargo fmt --all -- --check
- name: Check code suggestions with cargo clippy
run: cargo clippy -- -D warnings
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo test --workspace
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --workspace