File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e -o pipefail
4
+
5
+ if [[ " $CI " != " " ]]; then
6
+ exit
7
+ fi
8
+
9
+ set +x
10
+
11
+ make test
12
+ make lint
Original file line number Diff line number Diff line change 12
12
/man /actionlint.1.html
13
13
/playground-dist
14
14
/actionlint-workflow-ast
15
- # IntelliJ IDE Folder
16
- .idea /
15
+ /.git-hooks /.timestamp
Original file line number Diff line number Diff line change 1
- SRCS := $(filter-out % _test.go, $(wildcard * .go cmd/actionlint/* .go) ) go.mod go.sum
1
+ SRCS := $(filter-out % _test.go, $(wildcard * .go cmd/actionlint/* .go) ) go.mod go.sum .git-hooks/.timestamp
2
2
TESTS := $(filter % _test.go, $(wildcard * .go) )
3
3
TOOL := $(filter % _test.go, $(wildcard scripts/* /* .go) )
4
4
TESTDATA := $(wildcard \
@@ -15,7 +15,7 @@ GO_GEN_SRCS := scripts/generate-popular-actions/main.go \
15
15
scripts/generate-webhook-events/main.go \
16
16
scripts/generate-availability/main.go
17
17
18
- all : clean build test
18
+ all : build test lint
19
19
20
20
.testtimestamp : $(TESTS ) $(SRCS ) $(TESTDATA ) $(TOOL )
21
21
go test ./...
@@ -70,4 +70,8 @@ c clean:
70
70
rm -f ./actionlint ./.testtimestamp ./.staticchecktimestamp ./actionlint_fuzz-fuzz.zip ./man/actionlint.1 ./man/actionlint.1.html ./actionlint-workflow-ast
71
71
rm -rf ./corpus ./crashers
72
72
73
+ .git-hooks/.timestamp : .git-hooks/pre-push
74
+ [ -z " ${CI} " ] && git config core.hooksPath .git-hooks || true
75
+ touch .git-hooks/.timestamp
76
+
73
77
.PHONY : all test clean build lint fuzz man bench b t c l
You can’t perform that action at this time.
0 commit comments