homebox/.github/workflows/go.yaml

37 lines
662 B
YAML
Raw Normal View History

2022-08-30 02:30:36 +00:00
name: Go Build/Test
on:
push:
branches: [main]
paths:
- "**.go"
- "client/**/*.ts"
pull_request:
branches: [main]
paths:
- "**.go"
- "client/**/*.ts"
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Install Task
uses: arduino/setup-task@v1
- name: Build API
run: task api:build
- name: Test
run: task api:coverage
- name: Upload coverage to Codecov
run: cd backend && bash <(curl -s https://codecov.io/bash)