mirror of https://github.com/q191201771/naza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
586 B
YAML
34 lines
586 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '30 16 * * 6'
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
go: [1.14, 1.17]
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Build
|
|
run: ./build.sh
|
|
|
|
- name: Test
|
|
run: ./test.sh
|
|
|
|
- name: Upload coverage to Codecov
|
|
run: bash <(curl -s https://codecov.io/bash)
|