Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JY8752 committed Sep 29, 2023
1 parent a470f57 commit aa9c626
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# goのセットアップ
- name: Set up golang
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
# Go module cache
# - name: Cache Go modules
# uses: actions/cache@v2
# with:
# path: |
# ~/go/pkg/mod
# ~/go/bin/*
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# staticcheckインストール
go-version-file: go.mod
cache: true
- name: Install staticcheck
run: |
if ! command -v staticcheck &> /dev/null
then
go install honnef.co/go/tools/cmd/staticcheck@latest
fi
shell: bash # Windows環境考慮
# build
shell: bash
- name: Build
run: go build
# test
- name: Test
run: go test ./...
# 静的解析
- name: Staticcheck
run: staticcheck ./...
11 changes: 3 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,18 @@ jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # これがないとリリースを作成できない
contents: write
steps:
# チェックアウト
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Changelog を正しく動作させるために必要

# Go をセットアップ
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true

# リリース
- uses: goreleaser/goreleaser-action@v4
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 自動で生成されるシークレット
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

0 comments on commit aa9c626

Please sign in to comment.