Skip to content

Commit

Permalink
CI: Add additional OSs to build matrix
Browse files Browse the repository at this point in the history
This adds macOS and windows as targets for the Github Actions CI.
  • Loading branch information
matheusd committed Nov 25, 2022
1 parent 5c2e83f commit 85f922c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ permissions:
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.18, 1.19]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Prepare env.
- name: Set up Go
Expand All @@ -18,6 +19,11 @@ jobs:
go-version: ${{ matrix.go }}
- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0"
shell: bash
- name: Set git config to please linters
run: |
git config --global core.autocrlf false
git config --global core.eol lf
# Test repository.
- name: Check out source
Expand Down

0 comments on commit 85f922c

Please sign in to comment.