Skip to content

Commit

Permalink
chore: upgrade build environment to use go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
WheresAlice authored and wheresalice committed Mar 14, 2023
1 parent dfcc861 commit c71fe84
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 43 deletions.
25 changes: 3 additions & 22 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ pull_request_rules:
conditions:
- -draft
- author~=^dependabot(|-preview)\[bot\]$
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='test (1.20.x, ubuntu-latest)'
- title~=bump [^\s]+ from ([\d]+)\..+ to \1\.
actions:
review:
Expand All @@ -20,8 +19,7 @@ pull_request_rules:
- name: Alert on major version detection
conditions:
- author~=^dependabot(|-preview)\[bot\]$
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='test (1.20.x, ubuntu-latest)'
- -title~=bump [^\s]+ from ([\d]+)\..+ to \1\.
actions:
comment:
Expand All @@ -34,8 +32,7 @@ pull_request_rules:
- name: Automatic Merge ⬇️ on Approval ✔
conditions:
- "#approved-reviews-by>=1"
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='test (1.20.x, ubuntu-latest)'
- label!=work-in-progress
- -draft
actions:
Expand Down Expand Up @@ -147,22 +144,6 @@ pull_request_rules:
label:
add: ["idea"]

# ===============================================================================
# CONTRIBUTORS
# ===============================================================================

- name: Welcome New Contributors
conditions:
- and:
- author!=dependabot[bot]
- author!=mergify[bot]
- author!=allcontributors[bot]
- author!=wheresalice
actions:
comment:
message: |
Welcome to our open-source project! 💘
# ===============================================================================
# STALE BRANCHES
# ===============================================================================
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/run-tests.yml
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:
Expand All @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.19-alpine
FROM golang:1.20-alpine
WORKDIR /go/src/github.com/geeksforsocialchange/meeting-mood/
COPY . .
#RUN go mod download
Expand Down
7 changes: 6 additions & 1 deletion go.mod
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
)

0 comments on commit c71fe84

Please sign in to comment.