Skip to content

Commit

Permalink
Upgrade go version to 1.19 (#987)
Browse files Browse the repository at this point in the history
* upgrade go version to 1.19

* upgrade go version to 1.19 in dockerfile and test.yml
  • Loading branch information
nnnkkk7 authored Sep 25, 2022
1 parent db43f9a commit e93d8cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Build
run: go build -v ./...
- name: Build
run: go build -v ./...

- name: Test
run: make test
- name: Test
run: make test

- name: Validate Config
run: cd cmd/generate/config && go run main.go
- name: Validate Config
run: cd cmd/generate/config && go run main.go
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18 AS build
FROM golang:1.19 AS build
WORKDIR /go/src/github.com/zricethezav/gitleaks
COPY . .
RUN VERSION=$(git describe --tags --abbrev=0) && \
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module github.com/zricethezav/gitleaks/v8

go 1.17
go 1.19

require (
github.com/charmbracelet/lipgloss v0.5.0
github.com/fatih/semgroup v1.2.0
github.com/gitleaks/go-gitdiff v0.8.0
github.com/h2non/filetype v1.1.3
Expand All @@ -13,7 +14,6 @@ require (
)

require (
github.com/charmbracelet/lipgloss v0.5.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
Expand Down

0 comments on commit e93d8cb

Please sign in to comment.