Bump golang.org/x/net from 0.0.0-20220722155237-a158d28d115b to 0.27.0 #836
Workflow file for this run
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
name: Pull Request Build | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go 1.16 | |
uses: actions/[email protected] | |
with: | |
go-version: 1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Run GoReleaser | |
uses: goreleaser/[email protected] | |
with: | |
args: release --snapshot --clean | |
- name: Upload Artifact for darwin | |
uses: actions/upload-artifact@v2 | |
with: | |
name: jcli-darwin-amd64 | |
path: release/jcli-darwin-amd64.tar.gz | |
- name: Upload Artifact for linux | |
uses: actions/upload-artifact@v2 | |
with: | |
name: jcli-linux-amd64 | |
path: release/jcli-linux-amd64.tar.gz | |
GoLint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.16 | |
uses: actions/[email protected] | |
with: | |
go-version: 1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Go-linter-1 | |
uses: Jerome1337/[email protected] | |
with: | |
golint-path: app/cmd/... | |
- name: Go-linter-2 | |
uses: Jerome1337/[email protected] | |
with: | |
golint-path: app/helper/... | |
- name: Go-linter-3 | |
uses: Jerome1337/[email protected] | |
with: | |
golint-path: app/i18n/i18n.go | |
- name: Go-linter-4 | |
uses: Jerome1337/[email protected] | |
with: | |
golint-path: app/. | |
- name: Go-linter-5 | |
uses: Jerome1337/[email protected] | |
with: | |
golint-path: client/... | |
- name: Go-linter-6 | |
uses: Jerome1337/[email protected] | |
with: | |
golint-path: util/... | |
Security: | |
name: Security | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: on | |
steps: | |
- name: Checkout Source | |
uses: actions/[email protected] | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: '-exclude=G402,G204,G304,G110 app/cmd/common' | |
# - name: SonarCloud Scan | |
# uses: LinuxSuRen/sonarcloud-github-action@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# - name: Test | |
# run: | | |
# export PATH=$PATH:${PWD}/bin:$GOPATH/bin:/home/runner/go/bin | |
# make test | |
UnitTest: | |
name: Test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go 1.16 | |
uses: actions/[email protected] | |
with: | |
go-version: 1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Test | |
run: | | |
make test |