Skip to content

Commit

Permalink
GitHub workflow (#9)
Browse files Browse the repository at this point in the history
Enable GitHub Workflow and remove Gitlab CI/CI file.
  • Loading branch information
syifan committed May 30, 2023
1 parent 821b5f7 commit c3a4865
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 26 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
23 changes: 0 additions & 23 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 0 additions & 3 deletions monitoring/package-lock.json

This file was deleted.

0 comments on commit c3a4865

Please sign in to comment.