mirror of
https://github.com/wahyd4/terraform-provider-confluentcloud.git
synced 2026-08-09 04:25:51 +10:00
30 lines
843 B
YAML
30 lines
843 B
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.13.x
|
|
- run: |
|
|
export PATH=$PATH:$(go env GOPATH)/bin # temporary fix. See https://github.com/actions/setup-go/issues/14
|
|
go install github.com/jstemmer/go-junit-report
|
|
trap "go-junit-report < go-test.out > go-test-report.xml" EXIT
|
|
make test | tee go-test.out
|
|
- name: Upload test results
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: acc-test-results.xml
|
|
path: go-test-report.xml
|
|
# Use always() to always run this step to publish test results when there are test failures
|
|
if: always()
|