Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Update Sonar (#48)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bourdrez <[email protected]>
  • Loading branch information
bytemare authored Apr 28, 2024
1 parent 6394f62 commit 7ce68fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b # pin@master
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25 # pin@master
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25
with:
go-version-file: ./go.mod

# Linting
- name: Linting
uses: golangci/golangci-lint-action@92ba55cf0d79a9feb999e9bcef95c952bbbe545a # pin@master
uses: golangci/golangci-lint-action@92ba55cf0d79a9feb999e9bcef95c952bbbe545a
with:
version: latest
args: --config=./.github/.golangci.yml ./...
Expand All @@ -38,11 +38,11 @@ jobs:
go: [ '1.21', '1.20' ]
steps:
- name: Checkout repo
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b # pin@master
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25 # pin@master
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25
with:
go-version: ${{ matrix.go }}

Expand All @@ -55,11 +55,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b # pin@master
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25 # pin@master
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25
with:
go-version-file: ./go.mod

Expand All @@ -69,13 +69,13 @@ jobs:

# Codecov
- name: Codecov
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # pin@master
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
with:
file: .github/coverage.out

# Sonar
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@db501078e936e4b4c8773d1bb949ba9ddb7b6b6a # pin@master
uses: SonarSource/sonarcloud-github-action@6bbd64e0cb2194e04addb429d669a9ee873eeeef
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 7ce68fc

Please sign in to comment.