Merge pull request #5 from ssb-ngi-pointer/setup-github-actions

Create GitHub Actions
This commit is contained in:
Henry 2021-02-09 17:43:05 +01:00 committed by GitHub
commit a9865f1cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

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 ./...