Skip to content

Commit 22c70fc

Browse files
authored
ci: Push on main branch only
1 parent 8dfff2e commit 22c70fc

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: AoC CI (Lint & Test)
22

3-
on: [ push, pull_request ]
4-
5-
permissions:
6-
contents: read
3+
on:
4+
push:
5+
branches:
6+
- main
77

88
jobs:
99
lint:
@@ -19,20 +19,7 @@ jobs:
1919
uses: golangci/golangci-lint-action@v3
2020
with:
2121
version: latest
22-
test:
23-
name: Test
24-
needs: lint
25-
runs-on: ubuntu-latest
26-
strategy:
27-
matrix:
28-
version: [ "1.18.0", "1.19.0", "1.20.0", "1.21.0", "stable" ]
29-
steps:
30-
- uses: actions/checkout@v4
31-
- name: Set up Go
32-
uses: actions/setup-go@v4
33-
with:
34-
go-version: ${{matrix.version}}
3522
- name: Build
3623
run: go build -v ./...
3724
- name: Test
38-
run: go test -v ./...
25+
run: go test -v ./...

0 commit comments

Comments
 (0)