Skip to content

deps(deps): bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0 #96

deps(deps): bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0

deps(deps): bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0 #96

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: false
jobs:
setup-environment:
runs-on: "ubuntu-20.04"
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Go
id: module-cache
uses: actions/[email protected]
with:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.mod', '**/go.sum') }}
- name: Install dependencies
if: steps.module-cache.outputs.cache-hit != 'true'
run: make gomoddownload
- name: Cache Tools
id: tool-cache
uses: actions/[email protected]
with:
path: /home/runner/go/bin
key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Install Tools
if: steps.tool-cache.outputs.cache-hit != 'true'
run: make install-tools
vet:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
strategy:
matrix:
goos:
- darwin
- linux
- windows
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Go
id: module-cache
uses: actions/[email protected]
with:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.mod', '**/go.sum') }}
- name: Vet
run: GOOS=${{ matrix.goos }} go vet ./...
secure:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Tools
id: tool-cache
uses: actions/[email protected]
with:
path: /home/runner/go/bin
key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Gosec
run: make gosec
lint:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Tools
id: tool-cache
uses: actions/[email protected]
with:
path: /home/runner/go/bin
key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Lint
run: make lint
check-fmt:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Tools
id: tool-cache
uses: actions/[email protected]
with:
path: /home/runner/go/bin
key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Check Format
run: make check-fmt
misspell:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Tools
id: tool-cache
uses: actions/[email protected]
with:
path: /home/runner/go/bin
key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Misspell
run: make misspell
test:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Go
id: module-cache
uses: actions/[email protected]
with:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.mod', '**/go.sum') }}
- run: make test
build:
runs-on: "ubuntu-20.04"
needs:
- setup-environment
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.18
- name: Setup Go Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Cache Go
id: module-cache
uses: actions/[email protected]
with:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.mod', '**/go.sum') }}
- name: Cache Tools
id: tool-cache
uses: actions/[email protected]
with:
path: /home/runner/go/bin
key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Test GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: v1.9.0
args: release --skip-publish --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}