Skip to content

Commit

Permalink
CI: use GitHub Actions to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linstohu committed Oct 17, 2023
1 parent fc93121 commit 95e1cd1
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: License Checking

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
license:
name: License Checking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Check License Lines
uses: kt3k/[email protected]
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
GO_VERSION: "1.21"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/checkout@v3

- name: Test
run: go test -v ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 95e1cd1

Please sign in to comment.