Skip to content

Commit

Permalink
Add staticcheck GHA and update version for other GHAs (#15)
Browse files Browse the repository at this point in the history
* Add `staticcheck` GHA and update version for other GHAs

Signed-off-by: Arrobo, Gabriel <[email protected]>

* Add `README` with go report card

Signed-off-by: Arrobo, Gabriel <[email protected]>

---------

Signed-off-by: Arrobo, Gabriel <[email protected]>
  • Loading branch information
gab-arrobo authored Sep 27, 2024
1 parent 9133d07 commit 9d78e92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,21 @@ jobs:
go-version-file: 'go.mod'

- name: Build
run: go build
run: go build ./...

staticcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: WillAbides/[email protected]
with:
go-version-file: 'go.mod'

- uses: dominikh/[email protected]
with:
version: latest
install-go: false

lint:
runs-on: ubuntu-latest
Expand All @@ -35,7 +49,7 @@ jobs:
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/golangci-lint-action@v5.1.0
uses: golangci/golangci-lint-action@v6.1.0
with:
version: latest
args: -v --config ./.golangci.yml
Expand All @@ -46,7 +60,7 @@ jobs:
- uses: actions/checkout@v4

- name: reuse lint
uses: fsfe/reuse-action@v3
uses: fsfe/reuse-action@v4

fossa-check:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Copyright 2024-present Intel Corporation
SPDX-License-Identifier: Apache-2.0
-->
[![Go Report Card](https://goreportcard.com/badge/github.com/omec-project/aper)](https://goreportcard.com/report/github.com/omec-project/aper)

# aper

0 comments on commit 9d78e92

Please sign in to comment.