Skip to content

Add CI checks as github actions #2

Add CI checks as github actions

Add CI checks as github actions #2

Workflow file for this run

name: Numtracker CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
steps:

Check failure on line 12 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Numtracker CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 12, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Check formating
run: cargo fmt -- --check
- name: Clippy
run: |
cargo --version
cargo clippy --version
cargo clippy --all-targets --all-features -- --deny warnings
- name: Check formating
run: cargo fmt -- --check
- name: Run tests
run: cargo test --verbose