Skip to content

Merge pull request #566 from traPtitech/dependabot/go_modules/gomod-d… #1004

Merge pull request #566 from traPtitech/dependabot/go_modules/gomod-d…

Merge pull request #566 from traPtitech/dependabot/go_modules/gomod-d… #1004

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