File tree Expand file tree Collapse file tree 9 files changed +91
-70
lines changed
Expand file tree Collapse file tree 9 files changed +91
-70
lines changed Original file line number Diff line number Diff line change 1+ _extends : .github
Original file line number Diff line number Diff line change 1+ name : Audit
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : ' 7 3 * * 1' # Weekly on Monday
7+ pull_request :
8+ branches :
9+ - main
10+ push :
11+ branches :
12+ - main
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref_name }}
16+ cancel-in-progress : true
17+
18+ permissions :
19+ contents : read
20+
21+ jobs :
22+ go :
23+ uses : typisttech/.github/.github/workflows/audit-go.yml@v3
Original file line number Diff line number Diff line change 1- # Taken from https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
2- # and https://github.com/dependabot/fetch-metadata/blob/06ea45a2e4582d87b11f03c7ce596ae3261f39f6/README.md?plain=1#L133-L160
31name : Dependabot Auto-merge
42
5- on : pull_request
3+ on :
4+ pull_request :
5+ branches :
6+ - main
67
78concurrency :
89 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
910 cancel-in-progress : true
1011
11- permissions : {}
12+ permissions :
13+ contents : write
14+ pull-requests : write
1215
1316jobs :
1417 dependabot :
15- permissions :
16- contents : write
17- pull-requests : write
18- uses : typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v2
18+ uses : typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v3
1919 with :
2020 minor : true
2121 patch : true
Original file line number Diff line number Diff line change @@ -12,16 +12,24 @@ concurrency:
1212 group : ${{ github.workflow }}-${{ github.ref_name }}
1313 cancel-in-progress : true
1414
15- permissions : {}
15+ permissions :
16+ contents : read
1617
1718jobs :
18- go-generate :
19- uses : typisttech/.github/.github/workflows/create-auto-merged-pull-request-go.yml@v2
20- permissions :
21- contents : write
22- pull-requests : write
23- with :
24- command : go generate ./...
25- branch : tastendruck/go-generate/${{ github.ref_name }}
26- labels : go-generate
27- secrets : inherit
19+ update-data :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v5
23+ - uses : actions/setup-go@v6
24+ with :
25+ go-version-file : ' go.mod'
26+
27+ - run : go generate ./...
28+
29+ - uses : typisttech/.github/.github/actions/create-auto-merged-pull-request@v3
30+ with :
31+ app-id : ${{ vars.TASTENDRUCK_APP_ID }}
32+ private-key : ${{ secrets.TASTENDRUCK_PRIVATE_KEY }}
33+ branch : " tastendruck/github_actions/go-generate/${{ github.ref_name }}"
34+ title : " :robot: `go generate ./...`"
35+ labels : go-generate
Original file line number Diff line number Diff line change 1- name : Go proxy
1+ name : Go Proxy
22
33on : push
44
55permissions : {}
66
77jobs :
8- go-proxy :
9- if : github.repository == 'typisttech/comver'
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/setup-go@v6
13- with :
14- cache : false
15- - run : go list -m -u -json -x github.com/${{ github.repository }}@${{ github.sha }}
16- env :
17- GOPROXY : https://proxy.golang.org
18- GOSUMDB : sum.golang.org
19- - run : go list -m -u -json -x github.com/${{ github.repository }}@${{ github.ref_name }}
20- continue-on-error : true
21- env :
22- GOPROXY : https://proxy.golang.org
23- GOSUMDB : sum.golang.org
8+ go :
9+ uses : typisttech/.github/.github/workflows/go-proxy.yml@go3
Original file line number Diff line number Diff line change 1- name : govulncheck
1+ name : Lint
22
33on :
4- schedule :
5- - cron : ' 1 1 * * 1'
64 workflow_dispatch :
75 pull_request :
86 branches :
@@ -15,13 +13,9 @@ concurrency:
1513 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
1614 cancel-in-progress : true
1715
18- permissions : {}
16+ permissions :
17+ contents : read
1918
2019jobs :
21- govulncheck :
22- runs-on : ubuntu-latest
23- steps :
24- - uses : golang/govulncheck-action@v1
25- with :
26- go-version-file : ' go.mod'
27- go-package : ./...
20+ go :
21+ uses : typisttech/.github/.github/workflows/lint-go.yml@go3
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref_name }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ release-drafter :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : write
18+ pull-requests : read
19+ steps :
20+ - uses : release-drafter/release-drafter@v6
21+ env :
22+ GITHUB_TOKEN : ${{ github.token }} # Not a typo.
Original file line number Diff line number Diff line change 1- name : Go
1+ name : Test
22
33on :
44 workflow_dispatch :
@@ -16,30 +16,16 @@ concurrency:
1616permissions : {}
1717
1818jobs :
19- golangci-lint :
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v5
23- - uses : actions/setup-go@v6
24- with :
25- go-version-file : ' go.mod'
26- - uses : golangci/golangci-lint-action@v8
27- with :
28- version : latest
29- only-new-issues : true
30- args : --verbose
31-
3219 test :
3320 runs-on : ubuntu-latest
3421 steps :
3522 - uses : actions/checkout@v5
3623 - uses : actions/setup-go@v6
3724 with :
3825 go-version-file : ' go.mod'
39- - run : go mod tidy -diff
40- - run : go mod download
41- - run : go mod verify
42- - run : go test -v -count=1 -race -shuffle=on -coverprofile=coverage.out -covermode=atomic ./...
26+
27+ - run : go test -count=1 -race -shuffle=on -coverprofile=coverage.out -covermode=atomic ./...
28+
4329 - uses : actions/upload-artifact@v4
4430 with :
4531 name : coverage
@@ -52,12 +38,13 @@ jobs:
5238 id-token : write
5339 steps :
5440 - uses : actions/checkout@v5
55-
5641 - uses : actions/download-artifact@v5
5742 with :
5843 name : coverage
44+
5945 - uses : codecov/codecov-action@v5
6046 with :
61- use_oidc : ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
62- token : ${{ secrets.CODECOV_TOKEN }}
47+ use_oidc : true
6348 fail_ci_if_error : true
49+ disable_search : true
50+ files : coverage.out
Original file line number Diff line number Diff line change 44
55[ ![ Go Reference] ( https://pkg.go.dev/badge/github.com/typisttech/comver.svg )] ( https://pkg.go.dev/github.com/typisttech/comver )
66[ ![ GitHub Release] ( https://img.shields.io/github/v/release/typisttech/comver?style=flat-square& )] ( https://github.com/typisttech/comver/releases/latest )
7- [ ![ Go ] ( https://github.com/typisttech/comver/actions/workflows/go .yml/badge.svg )] ( https://github.com/typisttech/comver/actions/workflows/go .yml )
7+ [ ![ Test ] ( https://github.com/typisttech/comver/actions/workflows/test .yml/badge.svg )] ( https://github.com/typisttech/comver/actions/workflows/test .yml )
88[ ![ codecov] ( https://codecov.io/gh/typisttech/comver/graph/badge.svg?token=GVO7RV80TJ )] ( https://codecov.io/gh/typisttech/comver )
99[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/typisttech/comver )] ( https://goreportcard.com/report/github.com/typisttech/comver )
10- [ ![ license ] ( https://img.shields.io/github/license/typisttech/comver.svg )] ( https://github.com/typisttech/comver/blob/master/LICENSE )
10+ [ ![ License ] ( https://img.shields.io/github/license/typisttech/comver.svg )] ( https://github.com/typisttech/comver/blob/master/LICENSE )
1111[ ![ Follow @TangRufus on X] ( https://img.shields.io/badge/Follow-TangRufus-15202B?logo=x&logoColor=white )] ( https://x.com/tangrufus )
1212[ ![ Follow @TangRufus .com on Bluesky] ( https://img.shields.io/badge/Bluesky-TangRufus.com-blue?logo=bluesky )] ( https://bsky.app/profile/tangrufus.com )
1313[ ![ Sponsor @TangRufus via GitHub] ( https://img.shields.io/badge/Sponsor-TangRufus-EA4AAA?logo=githubsponsors )] ( https://github.com/sponsors/tangrufus )
You can’t perform that action at this time.
0 commit comments