Skip to content

Apply comment

Apply comment #11

Workflow file for this run

name: CI GO Backend

Check failure on line 1 in .github/workflows/ci_backend_go.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_backend_go.yaml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
branches: [main]
paths:
- ".github/workflows/ci_backend_go.yaml"
- "backend-go/**"
paths-ignore:
- "backend-go/design/**"
pull_request:
branches: [main]
paths:
- ".github/workflows/ci_backend_go.yaml"
- "backend-go/**"
paths-ignore:
- "backend-go/design/**"
jobs:
test:
runs-on: ubuntu-latest
env:
working-directory: ./backend-go
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install Tools
run: make tools
working-directory: ${{ env.working-directory }}
- name: Install Dependencies
run: go mod download
working-directory: ${{ env.working-directory }}
- name: Format
run: make fmt
working-directory: ${{ env.working-directory }}
- name: Lint
run: make lint
working-directory: ${{ env.working-directory }}
- name: Build
run: make build
working-directory: ${{ env.working-directory }}
- name: Test
run: make test
working-directory: ${{ env.working-directory }}