Files
nats-server/.github/workflows/go-test.yaml
Jaime Piña fd0f714d09 Consolidate test running logic
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.
2021-04-12 11:33:14 -07:00

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