Skip to content

trigger GCP deploy

trigger GCP deploy #97

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
tags-ignore:
- 'v*.*.*'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.18
- name: Check gofmt
run: test -z "$(gofmt -s -d .)"
- name: Run go vet
run: go vet ./...
- name: Make sure that go.mod has already been tidied
run: go mod tidy && git diff --no-patch --exit-code
- name: Build Server
run: go build ./cmd/server
- name: Build CLI
run: go build ./cmd/cli
- name: Run tests
run: go test -covermode=count -coverprofile=profile.cov ./...
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github