forked from flyte/terraform-provider-influxdb-v2
-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (28 loc) · 937 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Install Task
uses: arduino/setup-task@v1
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: go version
- name: Setup influxdb
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
source ./scripts/setup_influxdb.sh
echo "::set-env name=INFLUXDB_V2_URL::$INFLUXDB_V2_URL"
echo "::set-env name=INFLUXDB_V2_TOKEN::$INFLUXDB_V2_TOKEN"
echo "::set-env name=INFLUXDB_V2_BUCKET_ID::$INFLUXDB_V2_BUCKET_ID"
echo "::set-env name=INFLUXDB_V2_ORG_ID::$INFLUXDB_V2_ORG_ID"
echo "::set-env name=TF_ACC::1"
- name: Run unit tests
run : task test