Skip to content

Commit 2a04a18

Browse files
committed
Add GitHub test workflow
1 parent b9bda2f commit 2a04a18

4 files changed

Lines changed: 31 additions & 2 deletions

File tree

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[alias]
22
openapi = "run --package openapi --"
3+
4+
[net]
5+
git-fetch-with-cli = true

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
on: [push, pull_request]
3+
jobs:
4+
Test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Install Rust
8+
uses: dtolnay/rust-toolchain@1.91
9+
10+
- name: Checkout
11+
uses: actions/checkout@v6
12+
run: git config --global url."https://${{ secrets.GIT_CREDENTIALS }}@github.com".insteadOf https://github.com
13+
14+
- name: Lint
15+
run: |
16+
cargo fmt -- --check &&
17+
cargo clippy -- --no-deps --deny warnings &&
18+
cargo clippy --tests -- --no-deps --deny warnings
19+
20+
- name: Build
21+
run: cargo build --locked
22+
23+
- name: Test
24+
run: cargo test && cargo test --ignored

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ed25519-dalek = { version = "2", features = ["rand_core"] }
1414
libc = "0.2"
1515
p256 = { version = "0.13", features = ["ecdsa"] }
1616
pem-rfc7468 = { version = "0.7", features = ["std"] }
17-
permission-slip-client = { path = "../permission-slip/client" }
18-
permission-slip-common = { path = "../permission-slip/common" }
17+
permission-slip-client = { git = "https://github.com/oxidecomputer/permission-slip" }
18+
permission-slip-common = { git = "https://github.com/oxidecomputer/permission-slip" }
1919
progenitor = "0.11"
2020
rand_core = "0.6"
2121
reqwest = "0.12"

0 commit comments

Comments
 (0)