Update installation command for golang version 1.17 and up #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |