Skip to content

Commit

Permalink
ci: add GitHub Actions CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosind committed Oct 24, 2023
1 parent 4589f64 commit 619e39e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: coverage

on: [push, pull_request]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Test
run: go test -v ./... -coverprofile=coverage.out

- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: test

on: [push, pull_request]

jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: ["1.19", "1.20", "1.21"]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v3

- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}

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

0 comments on commit 619e39e

Please sign in to comment.