Skip to content

fix: scope stack comments to connected branches only (#67) #136

fix: scope stack comments to connected branches only (#67)

fix: scope stack comments to connected branches only (#67) #136

Workflow file for this run

name: CI
on:
push:
branches: [main, feature/*]
pull_request:
branches: [main, feature/*]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Configure git line endings
run: git config --global core.autocrlf false
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build
run: go build ./...
- name: Test
shell: bash
run: go test -race "-coverprofile=coverage.out" ./...
- name: Vet
run: go vet ./...
- name: Format check
shell: bash
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Files not formatted:"
gofmt -l .
exit 1
fi
- name: Lint
if: matrix.os == 'ubuntu-latest'
uses: golangci/golangci-lint-action@v9
with:
version: v2.10.1
- name: Upload coverage
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}