mirror of
https://github.com/foomo/squadron.git
synced 2025-10-16 12:35:42 +00:00
47 lines
876 B
YAML
47 lines
876 B
YAML
name: checks
|
|
|
|
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: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- uses: gotesttools/gotestfmt-action@v2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: latest
|
|
|
|
- name: Run tests
|
|
run: make test
|
|
env:
|
|
SHELL: "/bin/zsh"
|
|
|
|
- name: Run docker
|
|
run: make docker
|
|
|
|
- uses: coverallsapp/github-action@v2
|
|
with:
|
|
file: coverage.out
|