-
Notifications
You must be signed in to change notification settings - Fork 31
38 lines (37 loc) · 1 KB
/
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
34
35
36
37
38
name: CI
on:
pull_request:
push:
branches:
- "*"
tags:
- "*"
jobs:
test:
name: Test
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: script/bootstrap
- name: Machete
uses: bnjbvr/cargo-machete@main
- name: Setup | Cache Cargo
uses: actions/[email protected]
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ubuntu-test-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Tools
run: cargo install typos-cli || echo "typos-cli already installed"
- name: Lint
run: |
cargo clippy -- --deny warnings
typos
- name: Build test
run: cargo build