Skip to content

Commit

Permalink
Merge pull request #39 from mackerelio/run-mx
Browse files Browse the repository at this point in the history
run commands each oses
  • Loading branch information
lufia authored Mar 17, 2023
2 parents 3f9b7e4 + 40f845e commit 3fca2a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,10 @@ on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
uses: mackerelio/workflows/.github/workflows/go-lint.yml@main
test:
uses: mackerelio/workflows/.github/workflows/go-test.yml@main
testrun:
strategy:
matrix:
os: ['ubuntu-22.04', 'macos-12', 'windows-2022']
go: ['1.19.x', '1.18.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go run ./cmd/osstat
uses: mackerelio/workflows/.github/workflows/setup-go-matrix.yml@main
with:
run: go run ./cmd/osstat
3 changes: 3 additions & 0 deletions cmd/osstat/network.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux || darwin || freebsd || netbsd
// +build linux darwin freebsd netbsd

package main

import (
Expand Down

0 comments on commit 3fca2a2

Please sign in to comment.