chore: only build server for linux #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: "Reason for manual trigger" | |
required: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.5" | |
- name: Audit | |
run: make audit | |
- name: Install dependecies | |
run: go mod download | |
- name: Run unit tests with coverage | |
run: make coverage | |
- name: Upload coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
run: | | |
make coveralls | |
- name: Build server | |
run: make build_server | |
- name: Build CLI | |
run: make build_cli |