-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 907 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: go version
- run: go build -v ./...
- run: go test -v ./...
- run: go vet ./...
- run: go mod verify
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod
go-package: ./...
- name: Install Cypress
run: npm install cypress@13.7.3
- name: Run Cypress tests
uses: cypress-io/github-action@v6
with:
start: go run .
cache-key: somevalue
wait-on: 'http://localhost:8080'
install: false
env:
SERVER_ENV: test
CYPRESS_CRASH_REPORTS: 0
CYPRESS_COMMERCIAL_RECOMMENDATIONS: 0