Skip to content

Merge pull request #39 from hatena/update-readme-golangci-lint #83

Merge pull request #39 from hatena/update-readme-golangci-lint

Merge pull request #39 from hatena/update-readme-golangci-lint #83

Workflow file for this run

name: CI
on:
push:
branches:
main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- run: go test -v
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v2.5.0
# https://github.com/golangci/golangci-lint-action/issues/1246
#only-new-issues: true