Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Aug 31, 2023
1 parent 1c42e5a commit 986efbb
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 77 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/test-generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: General Tests
on: [push]

env:
GO_VERSION: "^1.19.10"
GO_VERSION: "^1.21"

jobs:
lint:
Expand All @@ -19,11 +19,8 @@ jobs:
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
- name: Run linter
uses: golangci/golangci-lint-action@v3

build:
name: Build
Expand All @@ -40,8 +37,5 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Build
- name: Build NATS Server
run: go build
103 changes: 38 additions & 65 deletions .github/workflows/test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,11 @@ name: Linux Tests
on: [push]

env:
GO_VERSION: "^1.19.10"
GO_VERSION: "^1.21"

jobs:
no-race:
name: No Race Tests
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 Deps
run: go mod download

- name: Run Tests
run: |-
go test -v -p=1 \
-run=TestNoRace \
./... \
-count=1 -vet=off -timeout=30m -failfast
js-no-cluster:
name: JetStream - No Cluster
name: JetStream tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,10 +18,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v \
-run=TestJetStream \
Expand All @@ -52,7 +27,7 @@ jobs:
-count=1 -vet=off -timeout=30m -failfast
js-cluster-1:
name: JetStream Cluster - Test 1
name: JetStream cluster tests (1)
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -63,10 +38,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v \
-run=TestJetStreamCluster \
Expand All @@ -75,7 +47,7 @@ jobs:
-count=1 -vet=off -timeout=30m -failfast
js-cluster-2:
name: JetStream Cluster - Test 2
name: JetStream cluster tests (2)
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -86,10 +58,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v \
-run=TestJetStreamCluster \
Expand All @@ -98,7 +67,7 @@ jobs:
-count=1 -vet=off -timeout=30m -failfast
js-cluster-3:
name: JetStream Cluster - Test 3
name: JetStream cluster tests (3)
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -109,10 +78,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v \
-run=TestJetStreamCluster \
Expand All @@ -121,7 +87,7 @@ jobs:
-count=1 -vet=off -timeout=30m -failfast
js-supercluster:
name: JetStream Supercluster
name: JetStream supercluster tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -135,15 +101,15 @@ jobs:
- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v \
-run=TestJetStreamSuperCluster \
./server/... \
-count=1 -vet=off -timeout=30m -failfast
js-chaos:
name: JetStream Chaos
no-race:
name: No-race tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -154,10 +120,26 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download
- name: Run unit tests
run: |-
go test -v -p=1 \
-run=TestNoRace \
./... \
-count=1 -vet=off -timeout=30m -failfast
js-chaos:
name: JetStream chaos tests
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: Run Tests
- name: Run unit tests
run: |-
go test -race -v -p=1 \
-run=TestJetStreamChaos \
Expand All @@ -166,7 +148,7 @@ jobs:
-count=1 -vet=off -timeout=30m -failfast
mqtt:
name: MQTT
name: MQTT tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -177,18 +159,15 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v \
-run=TestMQTT \
./server/... \
-count=1 -vet=off -timeout=30m -failfast
server-pkg-non-js:
name: Server Package - Non-JS
name: Non-JetStream/MQTT tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -199,18 +178,15 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v -p=1 \
./server/... \
-tags=skip_js_tests,skip_mqtt_tests \
-count=1 -vet=off -timeout=30m -failfast
non-server-pkg:
name: Non-Server Package
name: Tests from all other packages
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -221,10 +197,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Deps
run: go mod download

- name: Run Tests
- name: Run unit tests
run: |-
go test -race -v -p=1 \
./conf/... \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows-2019.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Windows Server 2019 - Tests
on: [push]

env:
GO_VERSION: "^1.19.10"
GO_VERSION: "^1.21"

jobs:
js-no-cluster:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows-2022.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Windows Server 2022 - Tests
on: [push]

env:
GO_VERSION: "^1.19.10"
GO_VERSION: "^1.21"

jobs:
js-no-cluster:
Expand Down

0 comments on commit 986efbb

Please sign in to comment.