mirror of
https://github.com/ericchiang/pup
synced 2025-01-15 18:20:57 +00:00
28 lines
506 B
YAML
28 lines
506 B
YAML
|
name: test
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest]
|
||
|
go-version: [1.17.x, 1.16.x]
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
steps:
|
||
|
- name: Install Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: ${{ matrix.go-version }}
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v2
|
||
|
- name: Build
|
||
|
run: go build ./...
|
||
|
- name: Test
|
||
|
run: go test -v ./...
|