mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
46 lines
834 B
YAML
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
|