posh/.github/workflows/test.yml
Kevin Franklin Kim d2619ef68b
chore: add tidy
2025-09-19 11:36:14 +02:00

46 lines
834 B
YAML

name: Test Branch
on:
push:
branches: [ main ]
pull_request:
merge_group:
workflow_dispatch:
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: jdx/mise-action@v3
- uses: actions/setup-go@v6
with:
check-latest: true
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v8
with:
install-mode: none
- name: Run tidy
run: make tidy && git diff --exit-code
- name: Run lint
run: make lint
- name: Run tests
run: make test
- name: Run demo test
run: make test.demo