diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..b0c5175 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,4 @@ +changelog: + exclude: + labels: + - tagpr diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml new file mode 100644 index 0000000..631beae --- /dev/null +++ b/.github/workflows/tagpr.yml @@ -0,0 +1,16 @@ +# .github/workflows/tagpr.yml +name: tagpr +on: + push: + branches: ["main"] +jobs: + deploy: + runs-on: ubuntu-24.04 + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v4.2.2 + - uses: Songmu/tagpr@v1.5.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/testandvet.yml b/.github/workflows/testandvet.yml index 76784ae..d936612 100644 --- a/.github/workflows/testandvet.yml +++ b/.github/workflows/testandvet.yml @@ -19,16 +19,25 @@ defaults: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v5.1.0 with: - go-version: 1.23.x + go-version: 1.24.0 - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 + + - name: Cache Go module and build cache + uses: actions/cache@v4.1.2 + with: + key: go-${{ hashFiles('**/go.sum') }} + path: | + ~/go/pkg/mod + restore-keys: | + go- - name: Install tennvet run: | diff --git a/.tagpr b/.tagpr new file mode 100644 index 0000000..59bf985 --- /dev/null +++ b/.tagpr @@ -0,0 +1,35 @@ +# config file for the tagpr in git config format +# The tagpr generates the initial configuration, which you can rewrite to suit your environment. +# CONFIGURATIONS: +# tagpr.releaseBranch +# Generally, it is "main." It is the branch for releases. The pcpr tracks this branch, +# creates or updates a pull request as a release candidate, or tags when they are merged. +# +# tagpr.versionFile +# Versioning file containing the semantic version needed to be updated at release. +# It will be synchronized with the "git tag". +# Often this is a meta-information file such as gemspec, setup.cfg, package.json, etc. +# Sometimes the source code file, such as version.go or Bar.pm, is used. +# If you do not want to use versioning files but only git tags, specify the "-" string here. +# You can specify multiple version files by comma separated strings. +# +# tagpr.vPrefix +# Flag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true) +# This is only a tagging convention, not how it is described in the version file. +# +# tagpr.changelog (Optional) +# Flag whether or not changelog is added or changed during the release. +# +# tagpr.command (Optional) +# Command to change files just before release. +# +# tagpr.tmplate (Optional) +# Pull request template in go template format +# +# tagpr.release (Optional) +# GitHub Release creation behavior after tagging [true, draft, false] +# If this value is not set, the release is to be created. +[tagpr] + vPrefix = true + releaseBranch = main + versionFile = version.txt diff --git a/go.mod b/go.mod index 0ac40e3..b2214ab 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gostaticanalysis/forcetypeassert -go 1.22.0 +go 1.23.0 require golang.org/x/tools v0.30.0 diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..b82608c --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +v0.1.0