posh/.github/workflows/test.yml
Kevin Franklin Kim 854e0c6d25
feat: add mise
2025-09-17 10:13:47 +02:00

46 lines
836 B
YAML

name: Test Branch
on:
push:
branches: [ main ]
pull_request:
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 lint
run: make lint
- name: Run tests
run: make test
- name: Run demo test
run: make test.demo
- uses: coverallsapp/github-action@v2
with:
file: coverage.out