Skip to content

chore: add GitHub Actions workflow to lint and build #1

chore: add GitHub Actions workflow to lint and build

chore: add GitHub Actions workflow to lint and build #1

Workflow file for this run

name: Lint and build
on:
push:
pull_request:
branches:
- main
jobs:
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install Rust toolchain (rustfmt)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check format
run: cargo fmt --all -- --check
test:
name: Build and test
strategy:
matrix:
os: ubuntu-latest

Check failure on line 27 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Lint and build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 27, Col: 13): Unexpected value 'ubuntu-latest'
toolchain: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install Rust toolchain ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- name: Run tests
run: cargo test --locked --release -vv