chore(tests): add js validation tests

These are the first javascript unit tests. Added them to the CI worflow.
Closes #2930
This commit is contained in:
Gabe Kangas
2023-04-16 14:30:56 -07:00
parent b3ac4e1a15
commit 5f2252f2a4
7 changed files with 4931 additions and 10 deletions

50
.github/workflows/go-tests.yaml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Go Tests
on:
push:
paths-ignore:
- 'web/**'
pull_request:
paths-ignore:
- 'web/**'
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install go
uses: actions/setup-go@v4
with:
go-version: '^1'
cache: true
- name: Run tests
run: go test ./...
test-bsds:
runs-on: macos-latest
strategy:
matrix:
os:
- name: freebsd
version: 12.2
- name: openbsd
version: 6.8
steps:
- uses: actions/checkout@v3
- name: Install go
uses: actions/setup-go@v4
with:
go-version: '^1'
cache: true
- name: Run tests
run: go test ./...