1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-26 21:34:44 +01:00

Rename go action -> Build Status; only apply to main and master

This commit is contained in:
Oliver Steele 2021-07-06 10:15:01 +08:00
parent 0bc5e4c93e
commit 522f0b321b
2 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,11 @@
name: Build and Test
on: [push, pull_request]
name: Build Status
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
strategy:
@ -7,14 +13,18 @@ jobs:
go-version: [1.15.x, 1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: go test ./...

View File

@ -227,7 +227,7 @@ MIT License
[coveralls-url]: https://coveralls.io/r/osteele/liquid?branch=master
[coveralls-svg]: https://img.shields.io/coveralls/osteele/liquid.svg?branch=master
[go-url]: https://github.com/osteele/liquid/actions?query=workflow%3A%22Build+and+Test%22
[go-url]: https://github.com/osteele/liquid/actions?query=workflow%3A%22Build+Status%22
[go-svg]: https://github.com/osteele/liquid/actions/workflows/go.yml/badge.svg
[golangci-lint-url]: https://github.com/osteele/liquid/actions?query=workflow%3Agolangci-lint