Skip to content

feat(deps): bump github.com/gin-gonic/gin from 1.8.1 to 1.9.0 #509

feat(deps): bump github.com/gin-gonic/gin from 1.8.1 to 1.9.0

feat(deps): bump github.com/gin-gonic/gin from 1.8.1 to 1.9.0 #509

Workflow file for this run

# Copyright (c) 2022 Purple Clay
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# in the Software without restriction, including without limitation the rights
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
name: ci
on:
push:
branches:
- main
paths:
- "**/*.go"
- "*.go"
- "go.mod"
- "go.sum"
pull_request:
paths:
- "**/*.go"
- "*.go"
- "go.mod"
- "go.sum"
jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set Git Line Endings
run: |
git config --global core.autocrlf false
git config --global core.eol lf
if: matrix.os == 'windows-latest'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Cache Go
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: task test
- name: Build
run: task build
# All static checks from this point should run on linux as it is the
# fastest platform
- name: Integration Test
if: matrix.os == 'ubuntu-latest'
run: task integration-test
# Temporary workaround until the golangci-lint GitHub action supports 1.19
- name: Install golangci-lint
if: matrix.os == 'ubuntu-latest'
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Lint Code
if: matrix.os == 'ubuntu-latest'
run: task lint
- name: misspell
if: matrix.os == 'ubuntu-latest'
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "UK"
exclude: |
./go.mod
./go.sum
./.goreleaser.yml
./Taskfile.yaml
./.github/workflows/**
./CODE_OF_CONDUCT.md
- name: SonarCloud Scan
if: matrix.os == 'ubuntu-latest'
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}