-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 802 Bytes
/
ci.yml
File metadata and controls
37 lines (32 loc) · 802 Bytes
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
name: ci
on:
pull_request:
branches:
- main
- "**"
env:
CARGO_TERM_COLOR: always
TOOLCHAIN: stable
jobs:
ci:
name: build, test, format, & pre-publish
timeout-minutes: 10
runs-on: ubuntu-latest
# fail on rust warnings
env:
RUSTFLAGS: "-D warnings"
steps:
- name: checkout code
uses: actions/checkout@v3
- name: update rust
run: rustup update ${{ env.TOOLCHAIN }} && rustup default ${{ env.TOOLCHAIN }}
- name: install just
uses: taiki-e/install-action@just
- name: build
run: cargo build --release --verbose
- name: test
run: cargo test --verbose
- name: check formatting
run: just format --check
- name: pre-publish
run: cargo publish --dry-run