-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.26 KB
/
Copy pathviewer-install-validation.yml
File metadata and controls
47 lines (40 loc) · 1.26 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
36
37
38
39
40
41
42
43
44
45
46
47
name: Viewer Install Validation
on:
pull_request:
paths:
- '.github/workflows/viewer-install-validation.yml'
- '.spec/**'
- '.rule/**'
- 'tools/cli/rule-cli/tests/install_contract_sync.rs'
- 'README.md'
push:
branches: [main, master]
paths:
- '.github/workflows/viewer-install-validation.yml'
- '.spec/**'
- '.rule/**'
- 'tools/cli/rule-cli/tests/install_contract_sync.rs'
- 'README.md'
workflow_dispatch:
concurrency:
group: viewer-install-validation-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
viewer-contract-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read pinned toolchain
id: toolchain
shell: bash
run: echo "value=$(<tools/install-validation/toolchain.txt)" >> "$GITHUB_OUTPUT"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.toolchain.outputs.value }}
- name: Validate viewer install contract sync
shell: bash
run: cargo test --manifest-path tools/cli/rule-cli/Cargo.toml --test install_contract_sync -- --nocapture