|
|
|
@ -15,12 +15,12 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: '^1.15.2'
|
|
|
|
|
go-version: '^1.19.5'
|
|
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Lint Go Code
|
|
|
|
|
run: |
|
|
|
|
@ -34,12 +34,12 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: '^1.15.2'
|
|
|
|
|
go-version: '^1.19.5'
|
|
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Run Unit tests.
|
|
|
|
|
run: |
|
|
|
|
@ -57,19 +57,21 @@ jobs:
|
|
|
|
|
name: Build and Integration tests
|
|
|
|
|
needs: [lint, test]
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: '^1.17.2'
|
|
|
|
|
go-version: '^1.19.5'
|
|
|
|
|
- run: go mod download
|
|
|
|
|
- name: Validates GO releaser config
|
|
|
|
|
uses: goreleaser/goreleaser-action@master
|
|
|
|
|
uses: goreleaser/goreleaser-action@v4
|
|
|
|
|
with:
|
|
|
|
|
distribution: goreleaser
|
|
|
|
|
args: check
|
|
|
|
|
- name: Run GoReleaser
|
|
|
|
|
uses: goreleaser/goreleaser-action@master
|
|
|
|
|
uses: goreleaser/goreleaser-action@v4
|
|
|
|
|
with:
|
|
|
|
|
args: release --snapshot --skip-publish --rm-dist
|
|
|
|
|
distribution: goreleaser
|
|
|
|
|
args: release --snapshot --skip-publish --clean
|
|
|
|
|
- name: Setup BATS
|
|
|
|
|
run: test/install-bats.sh
|
|
|
|
|
- name: Run End-To_end testing with the docker container
|
|
|
|
|