-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (29 loc) · 837 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Continuous Integration
on:
push:
pull_request:
types:
- reopened
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
name: Test the application
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build the application
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
lint:
runs-on: ubuntu-latest
name: Lint the application
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Clippy
run: rustup component add clippy
- name: Run linter
run: cargo clippy --verbose --all-targets --all-features -- -D warnings