Skip to content

Merge pull request #558 from traPtitech/upgrade/go-traq-delete-my-stamp #986

Merge pull request #558 from traPtitech/upgrade/go-traq-delete-my-stamp

Merge pull request #558 from traPtitech/upgrade/go-traq-delete-my-stamp #986

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags-ignore:
- "**"
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: go mod download
- run: go build -v ./...
test-unit:
name: Unit Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: go test -v $(go list ./... | grep -v "/infra/")
test-repo:
name: Repository Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run repository tests
run: |
go test -v ./infra...
golangci-lint:
name: Lint
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v6
with:
version: latest
args: "--timeout=5m"
install-mode: goinstall