@@ -10,57 +10,59 @@ permissions:
1010jobs :
1111 clean :
1212 # https://github.blesdmm.dns-dynamic.netmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
13- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
13+ if : ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
1414 runs-on : ubuntu-latest
1515 timeout-minutes : 10
1616 steps :
17- - uses : actions/checkout@v3
18- - uses : actions/setup-go@v3
17+ - uses : actions/checkout@v5
18+ - uses : actions/setup-go@v6
1919 with :
20- go-version : " ^1 "
20+ go-version : stable
2121 - run : lint=0 script/clean
2222
2323 bench :
2424 # https://github.blesdmm.dns-dynamic.netmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
25- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
25+ if : ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
2626 runs-on : ubuntu-latest
2727 timeout-minutes : 10
2828 steps :
29- - uses : actions/checkout@v3
30- - uses : actions/setup-go@v3
29+ - uses : actions/checkout@v5
30+ - uses : actions/setup-go@v6
3131 with :
32- go-version : " ^1 "
32+ go-version : stable
3333 - run : script/bench
3434
3535 lint :
3636 # https://github.blesdmm.dns-dynamic.netmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
37- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
37+ if : ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
3838 runs-on : ubuntu-latest
3939 timeout-minutes : 10
4040 steps :
41- - uses : actions/checkout@v3
42- - uses : actions/setup-go@v3
41+ - uses : actions/checkout@v5
42+ - uses : actions/setup-go@v6
4343 with :
44- go-version : " ^1"
45- - uses : golangci/golangci-lint-action@v2
44+ go-version : stable
45+ - uses : golangci/golangci-lint-action@v8
46+ with :
47+ version : v2.5.0
4648
4749 test :
4850 name : " test with Go ${{ matrix.go }}"
4951 # https://github.blesdmm.dns-dynamic.netmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
50- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
52+ if : ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
5153 runs-on : ubuntu-latest
5254 timeout-minutes : 10
5355 strategy :
5456 fail-fast : false
5557 matrix :
5658 include :
57- - { go: "1.11 " }
59+ - { go: "1.12 " }
5860 - { go: "1.17" }
5961 - { go: "1.18" }
6062 - { go: "^1", coverage: true }
6163 steps :
62- - uses : actions/checkout@v3
63- - uses : actions/setup-go@v3
64+ - uses : actions/checkout@v5
65+ - uses : actions/setup-go@v6
6466 with :
6567 go-version : ${{ matrix.go }}
6668 - run : go test -race
7274
7375 vuln :
7476 # https://github.blesdmm.dns-dynamic.netmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
75- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
77+ if : ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
7678 runs-on : ubuntu-latest
7779 timeout-minutes : 10
7880 steps :
79- - uses : actions/checkout@v3
81+ - uses : actions/checkout@v5
8082 - uses : kmulvey/govulncheck-action@main
0 commit comments