Skip to content

Update installation command for golang version 1.17 and up #21

Update installation command for golang version 1.17 and up

Update installation command for golang version 1.17 and up #21

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.14", "1.15"]
fail-fast: false
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache
**/node_modules
key: ${{ runner.os }}-amd64-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-amd64-go-
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Run Go tests
run: go test -v -race . ./pkg/sd
- name: Install frontend deps
working-directory: ./web-client
run: npm install
- name: Build frontend
working-directory: ./web-client
run: npm run build
- name: Run frontend tests
working-directory: ./web-client
run: npm run test