Skip to content

chore: add build status badge (#2) #10

chore: add build status badge (#2)

chore: add build status badge (#2) #10

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: ["main"]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
go: [stable]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install Go modules
run: go mod download -x
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Node Modules
run: pnpm install
- name: Generate
run: go generate ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
env:
SKIP_WATCHER_TESTS: 1
- name: Vet
run: go vet ./...