-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (37 loc) · 1.63 KB
/
status-checks.yml
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
# Workflow to check whether the current state fulfills all requirements.
name: Status checks
on: [ pull_request ]
jobs:
verify:
runs-on: ubuntu-latest
strategy:
matrix:
irmago-version:
- v0.4.1
- v0.5.0 # Introduces revocation
- v0.6.1 # Introduces requestor schemes
- v0.8.0 # Introduces issue wizards in requestor schemes
- v0.10.0 # Introduces support for defining the languages into which texts should be translated
- latest
steps:
- uses: actions/checkout@v3
with:
path: pbdf # Older irmago versions require the directory name to be equal to the scheme identifier
- name: Initialize ~/.local/bin directory
run: |
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Download irma CLI tool (latest)
if: matrix.irmago-version == 'latest'
run: wget -O "$HOME/.local/bin/irma" https://github.com/privacybydesign/irmago/releases/latest/download/irma-linux-amd64
- name: Download irma CLI tool (specific version)
if: matrix.irmago-version != 'latest'
run: |
wget -O "$HOME/.local/bin/irma" https://github.com/privacybydesign/irmago/releases/download/${{ matrix.irmago-version }}/irma-linux-amd64 \
|| wget -O "$HOME/.local/bin/irma" https://github.com/privacybydesign/irmago/releases/download/${{ matrix.irmago-version }}/irma-master-linux-amd64
shell: bash
- name: Set executable permissions
run: chmod +x "$HOME/.local/bin/irma"
- name: Verify scheme
run: irma scheme verify
working-directory: ./pbdf