-
Notifications
You must be signed in to change notification settings - Fork 13
58 lines (57 loc) · 1.71 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on: push
name: Test installation
jobs:
use-latest-version:
name: "Test getting latest CLI stable version"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install 1Password CLI
uses: ./ # 1password/install-cli-action@<version>
- name: Check CLI version
run: ./test/assert-version.sh latest
use-latest-beta-version:
name: "Test getting latest CLI beta version"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install 1Password CLI
uses: ./ # 1password/install-cli-action@<version>
with:
version: latest-beta
- name: Check CLI version
run: ./test/assert-version.sh latest-beta
use-specific-version:
name: "Test getting a specific CLI version"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install 1Password CLI
uses: ./ # 1password/install-cli-action@<version>
with:
version: 2.18.0
- name: Check CLI version
run: ./test/assert-version.sh 2.18.0
use-specific-beta-version:
name: "Test getting a specific CLI beta version"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install 1Password CLI
uses: ./ # 1password/install-cli-action@<version>
with:
version: 2.19.0-beta.01
- name: Check CLI version
run: ./test/assert-version.sh 2.19.0-beta.01