-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1.04 KB
/
script-test.yml
File metadata and controls
35 lines (28 loc) · 1.04 KB
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
name: Utility Script Tests
on:
pull_request:
branches:
- main
paths:
- '.github/deployment/scripts/protocol-cli.rs'
workflow_dispatch:
jobs:
test-protocol-cli:
name: Test protocol CLI script
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
shared-key: protocol-cli-test
- name: Install rust-script
run: |
curl -LsSf https://github.com/fornwall/rust-script/releases/latest/download/rust-script-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
sudo install rust-script /usr/local/bin/
- name: Run tests
run: |
echo "Running tests for protocol CLI script..."
rust-script --test .github/deployment/scripts/protocol-cli.rs