-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (30 loc) · 929 Bytes
/
ci.yml
File metadata and controls
33 lines (30 loc) · 929 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
on:
# Run only when pushing to main branch, and making PRs
push:
branches:
- main
pull_request:
name: CI
jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
# - name: Run cargo lib tests
# uses: actions-rs/cargo@v1
# with:
# command: test
# args: --lib