Skip to content

Commit

Permalink
Updated go version to 1.19.3 and added vulnerability check
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Nov 24, 2022
1 parent 61f62fe commit 887fdaa
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ name: Build

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

build:
strategy:
matrix:
platform: [ubuntu-latest]
go: [1.18.x]
go: [1.19.3]
name: '${{ matrix.platform }} | ${{ matrix.go }}'
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install go 1.18
uses: actions/setup-go@v2
- name: Install go 1.19
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Initialize CodeQL
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ on:
tags:
- "v*"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go 1.18
uses: actions/setup-go@v2
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19.3
- name: Generate release notes
run: |
git fetch --unshallow
Expand Down
34 changes: 29 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Test

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
Expand All @@ -22,30 +26,50 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
go: [1.18.x]
go: [1.19.3]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install go 1.18
uses: actions/setup-go@v2
- name: Install go 1.19
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Check formatting
run: |
make format-check
vulnerability-check:
name: "Vulnerability check"
strategy:
matrix:
platform: [ubuntu-latest]
go: [1.19.3]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install go 1.19
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Detect vulnerability
run: |
test -n "$(govulncheck ./... | grep 'No vulnerabilities found.')"
test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
go: [1.18.x]
go: [1.19.3]
name: '${{ matrix.platform }} | ${{ matrix.go }}'
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install go 1.18
- name: Install go 1.19
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
Expand Down

0 comments on commit 887fdaa

Please sign in to comment.