Skip to content

Commit d643d77

Browse files
committed
github/workflows: fix on.push.branches on Test workflow
1 parent 5e3939f commit d643d77

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@ name: Test
22

33
on:
44
push:
5-
branches: "*"
6-
tags:
7-
- "v*"
5+
branches:
6+
- '**'
87
pull_request:
9-
branches: "*"
8+
branches:
9+
- "*"
10+
release:
11+
types:
12+
- published
13+
- created
14+
- edited
15+
16+
env:
17+
GO111MODULE: "on"
1018

1119
defaults:
1220
run:
@@ -17,17 +25,16 @@ jobs:
1725
strategy:
1826
matrix:
1927
os:
20-
# https://github.com/actions/virtual-environments/blob/ubuntu20/20201210.0/images/linux/Ubuntu2004-README.md
21-
- ubuntu-20.04
22-
# https://github.com/actions/virtual-environments/blob/macOS-10.15/20201212.1/images/macos/macos-10.15-Readme.md
23-
- macos-10.15
24-
# https://github.com/actions/virtual-environments/blob/win19/20201210.0/images/win/Windows2019-Readme.md
25-
- windows-2019
28+
- ubuntu-20.04 # https://github.com/actions/virtual-environments/blob/ubuntu20/20201210.0/images/linux/Ubuntu2004-README.md
29+
- macos-10.15 # https://github.com/actions/virtual-environments/blob/macOS-10.15/20201212.1/images/macos/macos-10.15-Readme.md
30+
- windows-2019 # https://github.com/actions/virtual-environments/blob/win19/20201210.0/images/win/Windows2019-Readme.md
2631
go-version:
2732
- 1.13.x
2833
- 1.14.x
2934
- 1.15.x
3035
- 1.16.0-beta1
36+
fail-fast: false
37+
3138
runs-on: ${{ matrix.os }}
3239

3340
steps:
@@ -60,9 +67,9 @@ jobs:
6067
${{ env.OS }}-go-
6168
6269
- name: Cache nvim binary for linux and darwin
63-
uses: actions/cache@v2
6470
id: cache-nvim
65-
if: env.OS != 'windows'
71+
uses: actions/cache@v2
72+
if: ${{ env.OS != 'windows' }}
6673
with:
6774
key: ${{ env.OS }}-nvim-${{ hashFiles('~/nvim/bin/nvim') }}
6875
path: |
@@ -71,9 +78,9 @@ jobs:
7178
${{ env.OS }}-nvim-
7279
7380
- name: Cache nvim binary for Windows
74-
uses: actions/cache@v2
7581
id: cache-nvim-windows
76-
if: env.OS == 'windows'
82+
uses: actions/cache@v2
83+
if: ${{ env.OS == 'windows' }}
7784
with:
7885
key: ${{ env.OS }}-nvim-${{ hashFiles('~/nvim/bin/nvim.exe') }}
7986
path: |
@@ -89,7 +96,7 @@ jobs:
8996
version: nightly
9097

9198
- name: gofmt
92-
if: env.OS != 'windows'
99+
if: ${{ env.OS != 'windows' }}
93100
run: |
94101
diff -u <(echo -n) <(gofmt -s -d .)
95102

0 commit comments

Comments
 (0)