Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 2b19137

Browse files
authored
Update Github actions (#19)
- Bump checkout/setup-go actions versions - Drop pre-1.18 action - Edit action permissions to readonly
1 parent 88ecd8e commit 2b19137

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Run tests
22
on:
33
push:
4-
branches: [main]
4+
branches: ['*']
55
pull_request:
6-
branches: [main]
6+
branches: ['*']
7+
8+
permissions:
9+
contents: read
10+
711
env:
812
GO111MODULE: on
13+
914
jobs:
1015
test:
1116
strategy:
@@ -16,12 +21,12 @@ jobs:
1621
steps:
1722

1823
- name: Install Go
19-
uses: actions/setup-go@v2
24+
uses: actions/setup-go@v4
2025
with:
2126
go-version: ${{ matrix.go-version }}
2227

2328
- name: Checkout code
24-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
2530

2631
- name: Vet and build
2732
run: |
@@ -37,16 +42,10 @@ jobs:
3742
./ci/test.sh
3843
./ci/check_panic_handling.sh
3944
40-
- name: Run Go tests all
41-
if: ${{ startsWith(matrix.go-version, '1.18') }}
45+
- name: Run Tests
4246
run: |
4347
for i in $(find $PWD -name go.mod); do
4448
pushd $(dirname $i)
4549
go test ./...
4650
popd
4751
done
48-
49-
- name: Run Go tests some
50-
if: ${{ startsWith(matrix.go-version, '1.18') == false }}
51-
run: |
52-
go test ./...

0 commit comments

Comments
 (0)