mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Currently, we have different commands to run tests spread across different YAML files and comments in Go files. This change consolidates all the different commands, environment variables, and OS limits into 1 file that Travis, GitHub, and engineers can use to run tests.
33 lines
607 B
YAML
33 lines
607 B
YAML
name: NATS Server Testing
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go: [1.16]
|
|
|
|
env:
|
|
GOPATH: /home/runner/work/nats-server
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v1
|
|
with:
|
|
path: src/github.com/nats-io/nats-server
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{matrix.go}}
|
|
|
|
- name: Install tools
|
|
run: make install-tools
|
|
|
|
- name: Lint
|
|
run: make lint
|
|
|
|
- name: Run tests
|
|
run: make test-no-race test
|