Skip to content

Commit a8b9d7a

Browse files
authored
Add module for allowed signers file (#7)
* Add `AllowedSigner` struct * Add test for `Display` of `AllowedSigner` * Implement `Display` for `AllowedSigner` * Add `AllowedSignersFile` * Add TODO * Export `AllowedSigner` and `AllowedSignersFile` * Make fields public * Make write fn public * Use constructor for `AllowedSignersFile` * Add test for writing allowed signers file * Write trailing newline to allowed signers file * Move example signers into fixtures * Add test to ensure existing content is overriden * Benchmark writing the signers file * Add benchmark workflow again
1 parent d564707 commit a8b9d7a

File tree

6 files changed

+570
-1
lines changed

6 files changed

+570
-1
lines changed

.github/workflows/benchmark.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Benchmarks
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
COLUMNS: 120
12+
13+
jobs:
14+
benchmarks:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup rust toolchain, cache and cargo-codspeed binary
19+
uses: moonrepo/setup-rust@v1
20+
with:
21+
channel: stable
22+
cache-target: release
23+
bins: cargo-codspeed
24+
- name: Build the benchmark target(s)
25+
run: cargo codspeed build
26+
- name: Run the benchmarks
27+
uses: CodSpeedHQ/action@v2
28+
with:
29+
run: cargo codspeed run
30+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)