Skip to content

Commit

Permalink
chore: upgrade go to 1.21 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
qloog authored Jul 8, 2024
1 parent dfad135 commit e7a0a87
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]

jobs:
analyze:
Expand All @@ -27,7 +27,7 @@ jobs:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
# TODO: Enable for javascript later
language: [ 'go']
language: ["go"]

steps:
- name: Checkout repo
Expand All @@ -40,4 +40,4 @@ jobs:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.21

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
go-version: "1.21"

- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.19']
go: ["1.21"]
name: Test ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
env:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Compile stage
FROM golang:1.15-alpine3.12 AS builder
FROM golang:1.21-alpine3.20 AS builder

# The latest alpine images don't have some tools like (`git` and `bash`).
# Adding git, bash and openssh to the image
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-eagle/eagle

go 1.19
go 1.21

require (
github.com/1024casts/gorm-opentelemetry v1.0.1-0.20210805144709-183269b54068
Expand Down
Loading

0 comments on commit e7a0a87

Please sign in to comment.