File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : tests
2
+ on :
3
+ schedule :
4
+ - cron : ' 0 7 * * 1' # Mondays at 7AM
5
+ jobs :
6
+ tests :
7
+ runs-on : ubuntu-latest
8
+ name : tests
9
+
10
+ env :
11
+ OCI_KEY : ${{ secrets.OCI_KEY }}
12
+ OCI_CONFIG : ${{ secrets.OCI_CONFIG }}
13
+ TENANCY_OCID : ${{ secrets.TENANCY_OCID }}
14
+ COMPARTMENT_OCID : ${{ secrets.COMPARTMENT_OCID }}
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - name : Run tests
18
+ run : |
19
+ # Install OCI CLI
20
+ wget https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh
21
+ chmod +x ./install.sh
22
+ bash -c "./install.sh --accept-all-defaults"
23
+ mkdir -p ~/.oci
24
+ echo "$OCI_KEY" > ~/.oci/oci_ci_user.pem
25
+ echo "$OCI_CONFIG" > ~/.oci/config
26
+ # install terraform and kubectl
27
+ # curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
28
+ # sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
29
+ sudo apt-get update
30
+ sudo apt-get install -y terraform=1.2.9 kubectl=1.24.12
31
+ # sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
32
+ # wget -O- https://apt.releases.hashicorp.com/gpg | \
33
+ # gpg --dearmor | \
34
+ # sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
35
+
36
+ ./tests/tests.sh
You can’t perform that action at this time.
0 commit comments