Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiOnishi1129 committed Mar 31, 2024
1 parent 47e0786 commit adf2ab7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/batch_service_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: batch_service_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "batch-service/**"
- ".github/workflows/batch_service_pr_check.yml"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.22']

defaults:
run:
working-directory: ./batch-service

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- name: Install dependencies
run: go mod download

- name: Go Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && make lint

- name: Go Build
run: go build -v ./...

0 comments on commit adf2ab7

Please sign in to comment.