Skip to content

Commit 2e9aeed

Browse files
committed
Add tagpr and version up Go and dependencies
1 parent 74bc6f5 commit 2e9aeed

File tree

6 files changed

+70
-5
lines changed

6 files changed

+70
-5
lines changed

.github/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- tagpr

.github/workflows/tagpr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# .github/workflows/tagpr.yml
2+
name: tagpr
3+
on:
4+
push:
5+
branches: ["main"]
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-24.04
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/[email protected]
14+
- uses: Songmu/[email protected]
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/testandvet.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,25 @@ defaults:
1919

2020
jobs:
2121
test:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323

2424
steps:
2525
- name: Install Go
26-
uses: actions/setup-go@v5
26+
uses: actions/setup-go@v5.1.0
2727
with:
28-
go-version: 1.23.x
28+
go-version: 1.24.0
2929

3030
- name: Checkout code
31-
uses: actions/checkout@v4
31+
uses: actions/[email protected]
32+
33+
- name: Cache Go module and build cache
34+
uses: actions/[email protected]
35+
with:
36+
key: go-${{ hashFiles('**/go.sum') }}
37+
path: |
38+
~/go/pkg/mod
39+
restore-keys: |
40+
go-
3241
3342
- name: Install tennvet
3443
run: |

.tagpr

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# config file for the tagpr in git config format
2+
# The tagpr generates the initial configuration, which you can rewrite to suit your environment.
3+
# CONFIGURATIONS:
4+
# tagpr.releaseBranch
5+
# Generally, it is "main." It is the branch for releases. The pcpr tracks this branch,
6+
# creates or updates a pull request as a release candidate, or tags when they are merged.
7+
#
8+
# tagpr.versionFile
9+
# Versioning file containing the semantic version needed to be updated at release.
10+
# It will be synchronized with the "git tag".
11+
# Often this is a meta-information file such as gemspec, setup.cfg, package.json, etc.
12+
# Sometimes the source code file, such as version.go or Bar.pm, is used.
13+
# If you do not want to use versioning files but only git tags, specify the "-" string here.
14+
# You can specify multiple version files by comma separated strings.
15+
#
16+
# tagpr.vPrefix
17+
# Flag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true)
18+
# This is only a tagging convention, not how it is described in the version file.
19+
#
20+
# tagpr.changelog (Optional)
21+
# Flag whether or not changelog is added or changed during the release.
22+
#
23+
# tagpr.command (Optional)
24+
# Command to change files just before release.
25+
#
26+
# tagpr.tmplate (Optional)
27+
# Pull request template in go template format
28+
#
29+
# tagpr.release (Optional)
30+
# GitHub Release creation behavior after tagging [true, draft, false]
31+
# If this value is not set, the release is to be created.
32+
[tagpr]
33+
vPrefix = true
34+
releaseBranch = main
35+
versionFile = version.txt

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/gostaticanalysis/forcetypeassert
22

3-
go 1.22.0
3+
go 1.23.0
44

55
require golang.org/x/tools v0.30.0
66

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v0.1.0

0 commit comments

Comments
 (0)