41 lines
688 B
YAML
41 lines
688 B
YAML
name: Format and Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
format-check:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.23.3'
|
|
|
|
- name: Run Format Check
|
|
run: |
|
|
make format
|
|
|
|
test:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.23.3'
|
|
|
|
- name: Run Tests
|
|
run: |
|
|
make test-coverage
|