-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (28 loc) · 935 Bytes
/
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
# Terraform Provider testing workflow.
name: Tests
# This GitHub action runs your tests for each pull request and push.
# Optionally, you can turn it on using a schedule for regular testing.
on:
pull_request:
paths:
- '**.go'
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
testsunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go mod download
- name: Run Go unit tests
env:
TEST_CLOUDAVENUE_ORG: ${{ secrets.CLOUDAVENUE_ORG }}
TEST_CLOUDAVENUE_USERNAME: ${{ secrets.CLOUDAVENUE_USER }}
TEST_CLOUDAVENUE_PASSWORD: ${{ secrets.CLOUDAVENUE_PASSWORD }}
TEST_CLOUDAVENUE_VDC: ${{ secrets.CLOUDAVENUE_VDC }}
run: |
go test $(go list ./... | grep -v /internal/testsacc)