-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (32 loc) · 1.08 KB
/
acc-tests.yaml
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
name: Run Acceptance Tests
on:
push:
permissions:
contents: read
jobs:
run-acc-tests:
runs-on: ubuntu-latest
env:
ATLAS_PUBLIC_KEY: ${{ secrets.ATLAS_PUBLIC_KEY }}
ATLAS_PRIVATE_KEY: ${{ secrets.ATLAS_PRIVATE_KEY }}
ATLAS_PROJECT_ID: ${{ secrets.ATLAS_PROJECT_ID }}
ATLAS_CLUSTER_NAME: ${{ secrets.ATLAS_CLUSTER_NAME }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .go-version
cache: true
- name: Get IP
id: getip
run: echo "ip_address=$(curl -s https://api.ipify.org?format=json | jq -r .ip)" >> "$GITHUB_OUTPUT"
- name: Check IP
run: |
if [[ -z "${{ steps.getip.outputs.ip_address }}" ]]; then
echo "Unable to get runner IP address. Cannot update Network Permission List for acceptance tests."
exit 1
fi
- name: Run Acceptance Tests
env:
ATLAS_ALLOWLIST_IP: ${{ steps.getip.outputs.ip_address }}
run: make testacc