Skip to content

Commit

Permalink
add Action
Browse files Browse the repository at this point in the history
  • Loading branch information
yndu13 authored and peze committed Jun 14, 2022
1 parent d9ff2bf commit e0a739a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go CI

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

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.13, 1.14, 1.15]

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Build Tea
run: go build ./tea
- name: Build Util
run: go build ./utils

- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./tea/... ./utils/...

- name: CodeCov
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit e0a739a

Please sign in to comment.