Skip to content

workflow

workflow #31

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: workflow
on:
push:
branches: [ "release" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: {}
jobs:
workflow:
name: Run on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ['1.18', '1.19']
os: [ubuntu-latest, macOS-12, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./src