Skip to content

fix(cmd): count only successful pattern POSTs when adding to a running server #755

fix(cmd): count only successful pattern POSTs when adding to a running server

fix(cmd): count only successful pattern POSTs when adding to a running server #755

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
jobs:
job-test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pull-requests: write
actions: write
steps:
- name: Check out source code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
- name: Set up pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
package_json_file: internal/frontend/package.json
- name: Generate frontend assets
run: go generate ./internal/static/
- name: Run oxlint
if: runner.os == 'Linux'
run: cd internal/frontend && pnpm install && pnpm run lint
- name: Run oxfmt check
if: runner.os == 'Linux'
run: cd internal/frontend && pnpm run fmt:check
- name: Run lint
if: runner.os == 'Linux'
uses: reviewdog/action-golangci-lint@c76cceaaab89abe74e649d2e34c6c9adc26662d2 # v2.10.0
with:
fail_level: error
go_version_file: go.mod
cache: false
- name: Run gostyle
if: runner.os == 'Linux'
uses: k1LoW/gostyle-action@e1b847d37b3041c5fdb8b911bcf00b350779ca61 # v1.5.1
with:
config-file: .gostyle.yml
- name: Run tests
run: make ci
- name: Run octocov
if: runner.os == 'Linux'
uses: k1LoW/octocov-action@b3b6ee60482a667950f87553abf1df63217235d9 # v1.5.1