Skip to content

Commit

Permalink
Trying matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Oct 6, 2023
1 parent 5a8b599 commit 5ea1526
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 34 deletions.
39 changes: 8 additions & 31 deletions .github/workflows/code_scanners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,12 @@ permissions:


jobs:
govulncheck_job:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: "1.21.2"
go-package: ./...
security_scan:
code_scanning:
strategy:
matrix:
job_name: [security, vuln_check, lint]

runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
Expand All @@ -42,22 +35,6 @@ jobs:
run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
- name: Installing Go Tools
run: ./bin/task install_tools
- name: Running security scanning
run: ./bin/task security
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: $GO_VERSION
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.54
args: --timeout=30m
- name: Running Scan
run: ./bin/task ${{ matrix.job_name }}

4 changes: 1 addition & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ on:
- master
pull_request:

env:
GO_VERSION: 1.21.0

jobs:
test:
strategy:
matrix:
go: [ $GO_VERSION ]
go: [ 1.21.0 ]
grafana: [ 8.5.22, 9.4.3, 10.1.4 ]

env:
Expand Down

0 comments on commit 5ea1526

Please sign in to comment.