Skip to content

Commit

Permalink
ci: Add build, test and lint jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ishere committed Jan 27, 2024
1 parent 67a4ce6 commit 5415e93
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/cargo-test.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Check project with cargo tooling

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: build
run: cargo build --release --all-targets --keep-going --verbose

test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: test
run: cargo test --no-fail-fast --all-targets --verbose

- name: test docs
run: cargo test --no-fail-fast --doc --verbose

lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: check
run: cargo clippy --no-deps --all-targets --verbose

0 comments on commit 5415e93

Please sign in to comment.