Skip to content

Commit

Permalink
Split test files
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <byron@nats.io>
  • Loading branch information
bruth committed Jun 12, 2023
1 parent b014452 commit bdaef02
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 89 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-generic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: General Tests

on: [push]

env:
GO_VERSION: "^1.19.10"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Install GolangCI Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

- name: Run GolangCI Lint
run: golangci-lint run
25 changes: 25 additions & 0 deletions .github/workflows/test-linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Linux Tests
runs-on: ubuntu-latest

on: [push]

env:
GO_VERSION: "^1.19.10"

jobs:
build:
name: Build
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Build
run: go build
25 changes: 25 additions & 0 deletions .github/workflows/test-windows-2019.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Windows Server 2019 - Tests
runs-on: windows-2019

on: [push]

env:
GO_VERSION: "^1.19.10"

jobs:
build:
name: Build
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Build
run: go build
25 changes: 25 additions & 0 deletions .github/workflows/test-windows-2022.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Windows Server 2022 - Tests
runs-on: windows-2022

on: [push]

env:
GO_VERSION: "^1.19.10"

jobs:
build:
name: Build
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Build
run: go build
89 changes: 0 additions & 89 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit bdaef02

Please sign in to comment.