Skip to content

Commit 90a775c

Browse files
committed
Added more OSs to test on and also added linting
1 parent c3aa561 commit 90a775c

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.github/actions/lint/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: 'Lint Code'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- uses: actions/setup-go@v5
7+
with:
8+
go-version-file: go.mod
9+
cache-dependency-path: go.sum
10+
- name: golangci-lint
11+
uses: golangci/golangci-lint-action@v6
12+
with:
13+
args: --timeout=11m

.github/actions/test/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: 'Test Go Code'
23
description: 'Runs tests'
34
runs:

.github/workflows/pre.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
---
12
name: Pre-Build Workflow
2-
33
on:
44
push:
55
branches:
66
- master
77
- develop
88
jobs:
99
tests:
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os:
14+
- ubuntu-22.04
15+
- ubuntu-24.04
16+
- windows-2019
17+
- windows-2022
18+
- windows-2025
19+
- macos-13
20+
- macos-14
21+
- macos-15
1122
steps:
1223
- uses: actions/checkout@v4
1324
- uses: ./.github/actions/test
25+
- uses: ./.github/actions/lint

0 commit comments

Comments
 (0)