From 5077c3f12f015fcf2493a0318ae328c758539733 Mon Sep 17 00:00:00 2001 From: jupal Date: Fri, 1 Dec 2023 10:51:28 +0100 Subject: [PATCH] Create unit-tests.yml Add unit test on every push --- .github/workflows/unit-tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..699684e --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,15 @@ +# Terraform Provider test workflow. +name: Test + +# This GitHub action creates launch test when a commit is done +on: [push] +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: '1.20.0' # The Go version to download (if necessary) and use. + go-version-file: './go.mod' + - run: go test -v -tags=unit_tests ./...