Skip to content

Commit

Permalink
update ci to use go1.20 for now
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <[email protected]>
  • Loading branch information
cpanato committed Aug 16, 2023
1 parent 7f5ef39 commit 880aa82
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "daily"
3 changes: 2 additions & 1 deletion .github/workflows/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: CloudEvents
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.20.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -26,6 +26,7 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- name: Update git submodule
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Build
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.20.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -26,6 +26,7 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- name: Build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/go-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Go 1.17.x
- name: Setup Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.17.x
go-version: '1.20'
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- name: Go Format
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/go-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Go 1.17.x
- name: Setup Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.17.x
go-version: '1.20'
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- id: golangci_configuration
Expand All @@ -32,6 +33,6 @@ jobs:
if: steps.golangci_configuration.outputs.files_exists == 'true'
uses: golangci/golangci-lint-action@v3
with:
version: v1.29
version: v1.54
working-directory: v2

3 changes: 2 additions & 1 deletion .github/workflows/go-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Unit Test
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.20.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -26,6 +26,7 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- name: Test
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Only test one go version: the integration tests don't seem to pass if NATS runs more one running at a time.
go-version: [1.17.x]
go-version: [1.20.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
}
ports:
- 5672:5672

mqtt:
image: eclipse-mosquitto:1.6
ports:
Expand All @@ -69,8 +69,9 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- name: Test
run: ./hack/integration-test.sh

3 changes: 2 additions & 1 deletion .github/workflows/observability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: CloudEvents
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.20.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -26,6 +26,7 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: v2/go.sum
check-latest: true
id: go

- name: Update git submodule
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
outputs:
next: ${{ steps.ggsv.outputs.next}}
steps:
- name: Setup Go 1.17.x
- name: Setup Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.17.x
go-version: '1.20'
cache-dependency-path: v2/go.sum
check-latest: true

- name: Install Dependencies
run: go install tableflip.dev/ggsv@latest
Expand Down Expand Up @@ -56,11 +57,12 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Go 1.17.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.17.x
go-version: 1.20.x
cache-dependency-path: v2/go.sum
check-latest: true

- run: git pull

Expand All @@ -87,11 +89,12 @@ jobs:
env:
VERSION: ${{ needs.semver.outputs.next }}
steps:
- name: Set up Go 1.17.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.17.x
go-version: 1.20.x
cache-dependency-path: v2/go.sum
check-latest: true

- name: Checkout Code
uses: actions/checkout@v3
Expand Down

0 comments on commit 880aa82

Please sign in to comment.