Skip to content

Commit

Permalink
Add GitHub action to build, test, and upload coverage
Browse files Browse the repository at this point in the history
Based on `.travis.yaml`, which is not in use anymore.
  • Loading branch information
rillig authored Aug 20, 2023
1 parent d8e747b commit 404bae2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

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

jobs:

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

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

- name: Test
run: sh ./test.sh

- name: Upload coverage data
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 404bae2

Please sign in to comment.