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