-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 914 Bytes
/
test.yaml
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
name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore: ['**/Dockerfile', '**/public/**', '**/.*ignore', '**/*.toml']
push:
branches: [main, staging]
paths-ignore: ['**/Dockerfile', '**/public/**', '**/.*ignore', '**/*.toml']
jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
# Install Rust toolchain and components
- name: Install Rust with Clippy and Rustfmt
run: |
rustup install nightly
rustup default nightly
rustup override set nightly
rustup component add clippy
rustup component add rustfmt
curl -L https://risczero.com/install | bash
~/.risc0/bin/rzup install
cargo risczero --version
- name: Run tests
run: cargo test