Skip to content

Rename rust.yml to build.yml #1

Rename rust.yml to build.yml

Rename rust.yml to build.yml #1

Workflow file for this run

name: build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
entry-server:
strategy:
matrix:
# TODO: add nightly
toolchain: [stable]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master

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

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo test
run: cargo test --verbose --lib --bins --tests --no-fail-fast
- name: Run cargo clippy
run: cargo clippy --all-targets --all -- --deny=warnings
- name: Run cargo audit
uses: actions-rust-lang/audit@v1