Skip to content

review: reliability, npm supply-chain, hygiene bundles #2

review: reliability, npm supply-chain, hygiene bundles

review: reliability, npm supply-chain, hygiene bundles #2

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: gofmt
run: |
out=$(gofmt -l .)
if [ -n "$out" ]; then
echo "Files need gofmt:"
echo "$out"
exit 1
fi
- run: go vet ./...
- run: go test ./... -race -count=1
- run: go build -o /tmp/ccp ./cmd/ccp
- run: /tmp/ccp version