-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (38 loc) · 1.06 KB
/
sanity-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
name: Sanity test of run-oci-cli-command
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
test-action:
name: Sanity test run-oci-cli-command action
runs-on: ubuntu-latest
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
OCI_CLI_REGION: ${{ secrets.OCI_CLI_REGION }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Get object storage namespace
id: test-action-get-os-ns
uses: ./
with:
command: os ns get
- name: Output object storage namespace
id: output-os-ns
run: echo "${{ steps.test-action-get-os-ns.outputs.output }}"
- name: Test non-JSON output
id: test-non-json-output
uses: ./
with:
command: --output=table iam region list
silent: false