-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous configuration is badly outdated and needs to be updated. In the new version, I removed the checks for the dependency option without go modules, and also removed all old versions of go, as I don't intend to support them in the future. For convenience, added manual startup for workflow.
- Loading branch information
Showing
3 changed files
with
37 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
branches: [ main ] | ||
schedule: | ||
- cron: '44 5 * * 5' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
analyze: | ||
|
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
name: Static analysis and testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
cache: false | ||
|
||
- name: Check that all packages are compiling | ||
run: make build | ||
|
||
- name: Run all test | ||
run: make test | ||
|
||
- name: Installing tools | ||
run: make tools | ||
|
||
- name: Run all checks | ||
run: make check | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 |