test #2342
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: [ master, 'release-**'] | |
pull_request: | |
branches: [ master, 'release-**'] | |
schedule: | |
- cron: "0 6 * * *" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Lint | |
run: | | |
make lint | |
go-client: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goVer: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go ${{ matrix.goVer }} | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.goVer }} | |
- name: Test with GO test | |
run: | | |
make up | |
sleep 10 | |
make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
- name: down | |
if: always() | |
run: | | |
make down | |
go-client-ssl: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goVer: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go ${{ matrix.goVer }} | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.goVer }} | |
- name: Test SSL connection with CA | |
run: | | |
make up-ssl | |
sleep 10 | |
make ssl-test | |
- name: Test SSL connection self-signed | |
run: | | |
make up-ssl | |
sleep 10 | |
make ssl-test-self-signed | |
- name: down | |
if: always() | |
run: | | |
make down | |
go-client-example: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goVer: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go ${{ matrix.goVer }} | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.goVer }} | |
- name: Run examples | |
run: | | |
make up | |
sleep 10 | |
make run-examples | |
- name: down | |
if: always() | |
run: | | |
make down |