trigger ci on all branches.

This commit is contained in:
RainbowMango 2020-12-01 16:26:50 +08:00 committed by Kevin Wang
parent f9cde6835b
commit 0a789c52ca
1 changed files with 20 additions and 22 deletions

View File

@ -1,22 +1,20 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# the version of golangci-lint.
version: v1.32.2
# show only new issues if it's a pull request.
only-new-issues: false
name: golangci-lint
on:
# Run this workflow every time a new commit pushed to upstream/fork repository.
# Run workflow on fork repository will help contributors find and resolve issues before sending a PR.
push:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# the version of golangci-lint.
version: v1.32.2
# show only new issues if it's a pull request.
only-new-issues: false