forked from dell/terraform-provider-powerstore
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 857 Bytes
/
unit_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
35
36
name: Terraform Provider Tests
on: [push, pull_request]
jobs:
unit:
name: Unit Tests
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test -v ./...
acceptance:
name: Acceptance Tests
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: '1.2.4'
terraform_wrapper: false
- run: go test -v ./...
env:
TF_ACC: '1'