Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
syifan committed May 31, 2023
2 parents 934cb2e + 8d911b2 commit f8f06a6
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 388 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/regular_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Regular Test

on: push

jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'

- name: Build
run: go build ./...

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
cache: false

- name: Install golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: 'latest'
args: --timeout=10m

unit_test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'

- name: Unit Test
run: |
go test -coverprofile=cover.out ./...
go tool cover -func=cover.out > coverage.out
tail coverage.out
52 changes: 0 additions & 52 deletions monitoring/web/dist/dist.go

This file was deleted.

Loading

0 comments on commit f8f06a6

Please sign in to comment.