Skip to content

build test GitHub actions workflow to ensure main branch will always … #1

build test GitHub actions workflow to ensure main branch will always …

build test GitHub actions workflow to ensure main branch will always … #1

Workflow file for this run

name: Test Build
on:
pull_request:
types:
- opened
- synchronize
paths:
- .github/workflows/build_test.yml
- **.go

Check failure on line 9 in .github/workflows/build_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_test.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
- go.mod
jobs:
build:
name: Build
strategy:
fail-fast: true
matrix:
runner:
- ubuntu-22.04
- windows-2022
- macos-12
runs-on: ${{ matrix.runner }}
steps:
- name: Clone repository
uses: actions/checkout@v4
# Go is pre-installed in MacOS and Windows runners
- name: Install Go
if: ${{ matrix.runner == 'ubuntu-22.04' }}
run: sudo apt install golang-go
- name: Build binary
run: go build