Create go.yml

This commit is contained in:
Henry 2021-02-09 17:42:24 +01:00 committed by GitHub
parent b0e09f6867
commit 89b51fc580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

39
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node (for interop testing)
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build smoke test
run: go build ./cmd/server
- name: install node ssb-stack
run: |
pushd test/nodejs
npm ci
popd
- name: All the Test
run: go test ./...