-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Antoine Gelloz
committed
Mar 25, 2024
1 parent
6d015fa
commit 3ec3556
Showing
7 changed files
with
37 additions
and
82 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
--- | ||
name: Lint (YAML) | ||
name: YAML lint | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: ["**.ya?ml"] | ||
|
||
jobs: | ||
yamllint: | ||
name: YAML lint | ||
lintyaml: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # tag=v3.1.1 | ||
with: | ||
format: github |
40 changes: 18 additions & 22 deletions
40
.github/workflows/test.golang.yml → .github/workflows/qa.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,46 @@ | ||
--- | ||
name: Test (Golang) | ||
name: QA | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- .github/workflows/test.golang.yml | ||
- .github/workflows/qa.yml | ||
- go.* | ||
- cmd/** | ||
- pkg/** | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
go-test: | ||
name: Golang test | ||
QA: | ||
name: QA | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
# renovate: datasource=golang-version | ||
go-version: "1.21.0" | ||
check-latest: true | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
go-version-file: "go.mod" | ||
- uses: tlylt/install-graphviz@b2201200d85f06f0189cb74d9b69208504cf12cd # v1.0.0 | ||
|
||
- name: Run golang tests | ||
- name: Run linters | ||
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0 | ||
with: | ||
# renovate: datasource=github-releases depName=golangci/golangci-lint | ||
version: v1.56.2 | ||
|
||
- name: Run tests | ||
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... | ||
- name: Archive code coverage results | ||
- name: Archive code coverage result | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: golang-coverage-report | ||
name: coverage-result | ||
path: coverage.out | ||
retention-days: 1 | ||
|
||
codecov: | ||
name: Codecov | ||
runs-on: ubuntu-latest | ||
needs: [go-test] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4 | ||
with: | ||
name: golang-coverage-report | ||
|
||
- uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0 | ||
with: | ||
files: ./coverage.out | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
verbose: true |
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
14 changes: 6 additions & 8 deletions
14
.github/workflows/lint.github-action.yml → .github/workflows/security.yml
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
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