Skip to content

Commit 5ed537b

Browse files
committed
setup ci/cd
1 parent 72fa342 commit 5ed537b

File tree

6 files changed

+118
-0
lines changed

6 files changed

+118
-0
lines changed

.github/dependabot.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5
8+
labels:
9+
- "dependencies"
10+
11+
- package-ecosystem: gomod
12+
directory: "/"
13+
schedule:
14+
interval: weekly
15+
time: "20:00"
16+
open-pull-requests-limit: 5
17+
reviewers:
18+
- "mashiike"
19+
ignore:
20+
- dependency-name: "aws*"
21+
update-types: ["version-update:semver-patch"]
22+
labels:
23+
- "dependencies"

.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/reviewdog.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: reviewdog
2+
on: [pull_request]
3+
jobs:
4+
staticcheck:
5+
name: staticcheck
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: reviewdog/action-staticcheck@v1
10+
with:
11+
github_token: ${{ secrets.GITHUB_TOKEN }}
12+
reporter: github-pr-review
13+
fail_on_error: true

.github/workflows/tagpr.yaml

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

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
test:
15+
strategy:
16+
matrix:
17+
go:
18+
- 1.18
19+
- 1.19
20+
name: Build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Set up Go
24+
uses: actions/setup-go@v3
25+
with:
26+
go-version: ${{ matrix.go }}
27+
id: go
28+
29+
- name: Check out code into the Go module directory
30+
uses: actions/checkout@v3
31+
32+
- name: Build & Test
33+
run: |
34+
go test -race ./...

.tagpr

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
[tagpr]
29+
vPrefix = true
30+
releaseBranch = main
31+
versionFile = -

0 commit comments

Comments
 (0)