Skip to content

Setup GitHub Actions #1

Setup GitHub Actions

Setup GitHub Actions #1

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check code errors and warnings
run: cargo clippy
- name: Run tests
run: cargo test
- name: Check code formatting
run: cargo fmt --check