Add Extensions Mechanism #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Test | |
run: go test -covermode=atomic -coverpkg=./... -coverprofile=test.cov -v ./... | |
- name: upload coverage data | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test.cov | |
path: test.cov | |
retention-days: 1 | |
sonar: | |
name: Run SonarCloud Analysis | |
runs-on: ubuntu-22.04 | |
needs: test | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: download coverage data from GitHub storage | |
uses: actions/download-artifact@v4 | |
with: | |
path: cov/ | |
merge-multiple: true | |
- name: SonarCloud Scan | |
uses: sonarsource/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | |