-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Bump go; use goreleaser for build (#281)
* chore: Bump go version to 1.21 * chore: Use docker file for go-tools * chore: Use goreleaser for build * chore: Update workflows * chore: Fix codeql workflow * chore: Bump github.com/obalunenko/logger to v1.0.1
- Loading branch information
1 parent
2b14ee4
commit 9b4ebed
Showing
80 changed files
with
456 additions
and
10,315 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,22 +23,32 @@ on: | |
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
language: [ 'go' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
language: [ 'go' ] | ||
os: [ 'ubuntu-22.04' ] | ||
go-version: [1.21] | ||
steps: | ||
- name: Checkout repository | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- run: | | ||
go version | ||
shell: bash | ||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
|
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: build-lint-docker-images | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
branches: | ||
- "*" | ||
paths: | ||
- "!**" | ||
- "build/docker/**" | ||
- "!build/docker/**.sh" | ||
- ".github/workflows/dockerfiles.yml" | ||
|
||
jobs: | ||
lint-dockerfiles: | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
dockerfile: | ||
[ | ||
"./build/docker/go-tools/Dockerfile", | ||
] | ||
runs-on: "ubuntu-22.04" | ||
name: Lint ${{ matrix.dockerfile }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Lint | ||
uses: jbergstroem/hadolint-gh-action@v1 | ||
with: | ||
dockerfile: ${{ matrix.dockerfile }} | ||
annotate: true | ||
error_level: 2 |
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 |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
max-parallel: 3 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Build | ||
steps: | ||
|
@@ -53,7 +53,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: | | ||
go version | ||
|
@@ -72,6 +72,11 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/tools/go.sum') }} | ||
- name: Install tools | ||
run: | | ||
make install-tools | ||
shell: bash | ||
|
||
- name: Build | ||
run: | | ||
make build | ||
|
@@ -93,7 +98,7 @@ jobs: | |
max-parallel: 2 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Run Tests | ||
steps: | ||
|
@@ -105,7 +110,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: | | ||
go version | ||
|
@@ -140,7 +145,7 @@ jobs: | |
max-parallel: 2 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Run linters | ||
steps: | ||
|
@@ -152,11 +157,16 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
- run: | | ||
go version | ||
shell: bash | ||
- name: Install tools | ||
run: | | ||
make install-tools | ||
shell: bash | ||
|
||
- name: Vet | ||
run: | | ||
make vet | ||
|
@@ -192,7 +202,7 @@ jobs: | |
max-parallel: 1 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Quality reports | ||
steps: | ||
|
@@ -204,7 +214,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
- run: | | ||
go version | ||
shell: bash | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
max-parallel: 2 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Build | ||
steps: | ||
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: | | ||
go version | ||
|
@@ -60,7 +60,7 @@ jobs: | |
max-parallel: 2 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Regression tests | ||
steps: | ||
|
@@ -72,7 +72,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: | | ||
go version | ||
|
@@ -109,7 +109,7 @@ jobs: | |
max-parallel: 1 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Lint | ||
steps: | ||
|
@@ -121,7 +121,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: | | ||
go version | ||
|
@@ -162,7 +162,7 @@ jobs: | |
max-parallel: 1 | ||
matrix: | ||
os: [ 'ubuntu-22.04' ] | ||
go: [ '1.20' ] | ||
go-version: [1.21] | ||
runs-on: ${{ matrix.os }} | ||
name: Release | ||
steps: | ||
|
@@ -174,7 +174,7 @@ jobs: | |
- name: Set up go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- run: | | ||
go version | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM ghcr.io/obalunenko/go-tools:v1.3.2 AS builder | ||
|
||
CMD ["/bin/sh", "-c", ""] |
Oops, something went wrong.