-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (36 loc) · 958 Bytes
/
rust.yml
File metadata and controls
41 lines (36 loc) · 958 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
38
39
40
41
name: rust tests
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: never
NO_COLOR: 1
jobs:
test:
if: github.repository_owner == 'aws-samples'
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Cache
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
- name: Format
run: cargo fmt --all -- --check --verbose
- name: Build
run: cargo build --verbose
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings
- name: No-panic verification
run: ./scripts/check_no_panic.sh
- name: Run tests
run: cargo test --verbose