mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
37 lines
722 B
YAML
37 lines
722 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
buf-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Buf
|
|
uses: bufbuild/buf-setup-action@v1
|
|
- name: Buf Lint
|
|
uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: proto
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
cache: true
|
|
- name: Build
|
|
run: |
|
|
go test -v -short ./...
|
|
go build cmd/ionscale/main.go |