Merge pull request #1 from palkx/feat-load-certificates-from-base64 #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go | |
- name: "Run tests" | |
run: | | |
go install github.com/jstemmer/go-junit-report/[email protected] | |
make test | tee results | go-junit-report -set-exit-code > report.xml | |
cat results | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "report.xml" | |
if: always() | |
acctest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go | |
- name: Bring up kafka | |
run: make upkafka | |
- name: "Run tests" | |
run: | | |
go install github.com/jstemmer/go-junit-report/[email protected] | |
make testacc | tee results | go-junit-report -set-exit-code > report.xml | |
cat results | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "report.xml" | |
if: always() |