-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade build environment to use go 1.20
- Loading branch information
1 parent
dfcc861
commit c71fe84
Showing
5 changed files
with
13 additions
and
43 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: "1.17.5" | ||
go-version: "1.20" | ||
- name: Run GoReleaser | ||
uses: goreleaser/[email protected] | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# See more at: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | ||
name: run-go-tests | ||
|
||
env: | ||
|
@@ -11,26 +10,11 @@ on: | |
push: | ||
branches: | ||
- "*" | ||
# schedule: | ||
# - cron: '1 4 * * *' | ||
|
||
jobs: | ||
asknancy: | ||
name: Ask Nancy (check dependencies) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Write go list | ||
run: go list -json -m all > go.list | ||
- name: Ask Nancy | ||
uses: sonatype-nexus-community/[email protected] | ||
# continue-on-error: true | ||
test: | ||
needs: [asknancy] | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x, 1.17.x] | ||
go-version: [1.20.x] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -52,4 +36,4 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run linter and tests | ||
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic | ||
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
module github.com/geeksforsocialchange/meeting-mood | ||
|
||
go 1.16 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/gorilla/websocket v1.5.0 | ||
github.com/hashicorp/go-memdb v1.3.4 | ||
) | ||
|
||
require ( | ||
github.com/hashicorp/go-immutable-radix v1.3.0 // indirect | ||
github.com/hashicorp/golang-lru v0.5.4 // indirect | ||
) |