Skip to content

Commit

Permalink
ci: include golangci-lint in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Jun 22, 2021
1 parent 376c156 commit 39ec200
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
name: CI

on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest

test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go: [ "^1.14", "^1.15", "^1.16" ]
go:
- "^1.14"
- "^1.15"
- "^1.16"
steps:
- name: Setup Go
uses: actions/setup-go@v2
Expand All @@ -22,13 +42,11 @@ jobs:
chmod +x "$HOME/.local/bin/cyclonedx"
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build
run: make build
- name: Test
run: make test
- name: Generate SBOM
uses: CycloneDX/[email protected]
with:
json: true
type: library
version: v0.8.1
version: latest

0 comments on commit 39ec200

Please sign in to comment.