Skip to content

Commit

Permalink
build: restore go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jul 20, 2023
1 parent 24b6608 commit 3148d7e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Go Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 'stable'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Install make (Windows)
if: runner.os == 'Windows'
run: choco install -y make mingw

- name: Check
run: make check
env:
GOLANGCI_LINTERS: gosec

- name: Upload Code Coverage
if: runner.os == 'Linux'
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 3148d7e

Please sign in to comment.