-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (40 loc) · 1.23 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
46
47
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:
- uses: actions/checkout@v4
- name: Get object storage namespace
id: test-action-get-os-ns
uses: ./
with:
command: 'iam compartment list --compartment-id-in-subtree=true'
query: "data[?name=='github-actions'].id"
silent: false
- name: Echo object storage namespace
id: echo-os-ns-get
run: |
echo "Output: ${{ steps.test-action-get-os-ns.outputs.output}}"
echo "Raw output: ${{ steps.test-action-get-os-ns.outputs.raw_output}}"
- name: Test non-JSON output
id: test-non-json-output
uses: ./
with:
command: --output=table iam region list
silent: false