-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (33 loc) · 995 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
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 ./... # reports suspicious constructs
- run: go mod verify # checks dependencies against the local module cache
- id: govulncheck # reports known vulnerabilities
uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod
go-package: ./...
- name: Install Cypress
run: npm install [email protected]
- 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:
CYPRESS_CRASH_REPORTS: 0
CYPRESS_COMMERCIAL_RECOMMENDATIONS: 0