-
Notifications
You must be signed in to change notification settings - Fork 12
72 lines (67 loc) · 1.98 KB
/
test.yml
File metadata and controls
72 lines (67 loc) · 1.98 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
on: [push]
jobs:
test-token:
runs-on: ubuntu-latest
name: Test the action with a setup token
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install the Linode CLI
uses: ./
with:
token: "${{ secrets.LINODE_TOKEN }}"
- name: Run an authenticated command
run: linode-cli linodes ls > /dev/null
test-notoken:
runs-on: ubuntu-latest
name: Test the action without a setup token
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install the Linode CLI
uses: ./
- name: Run an authenticated command
run: linode-cli linodes ls > /dev/null
env:
LINODE_CLI_TOKEN: "${{ secrets.LINODE_TOKEN }}"
test-version:
runs-on: ubuntu-latest
name: Test the action with an explicit version
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install the Linode CLI
uses: ./
with:
token: "${{ secrets.LINODE_TOKEN }}"
version: v5.48.4
- name: Run an authenticated command
run: linode-cli linodes ls > /dev/null
test-optional-deps:
runs-on: ubuntu-latest
name: Test the action with optional dependencies
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install the Linode CLI
uses: ./
with:
token: "${{ secrets.LINODE_TOKEN }}"
optional-deps: true
- name: Assert optional dep installed
run: pip freeze | grep -q boto3
- name: Run an authenticated command
run: linode-cli linodes ls > /dev/null
test-no-upgrade:
runs-on: ubuntu-latest
name: Test the action with upgrade disabled
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install the Linode CLI
uses: ./
with:
token: "${{ secrets.LINODE_TOKEN }}"
upgrade: false
- name: Run an authenticated command
run: linode-cli linodes ls > /dev/null