Skip to content

Commit f830802

Browse files
committed
Fix CI
Also update gofmt, some outdated patterns.
1 parent 69514f1 commit f830802

14 files changed

Lines changed: 244 additions & 210 deletions

.editorconfig

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 31 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,41 @@
1-
name: test
2-
on: [push]
1+
name: 'test'
2+
on:
3+
pull_request:
4+
paths: ['**.go', 'go.mod', '.github/workflows/*']
5+
push:
6+
branches: ['main']
37
jobs:
48
test:
59
strategy:
610
fail-fast: false
711
matrix:
8-
os:
9-
- macos-10.15
10-
- macos-latest
11-
go:
12-
- '1.18.0-beta1'
13-
- '1.17'
14-
- '1.16'
15-
runs-on: ${{ matrix.os }}
12+
os: ['macos-12', 'macos-latest']
13+
go: ['1.17', '1.22']
14+
runs-on: '${{ matrix.os }}'
1615
steps:
17-
- name: setup Go
18-
uses: actions/setup-go@v2
16+
- uses: 'actions/checkout@v4'
17+
- uses: 'actions/setup-go@v5'
1918
with:
20-
stable: 'false'
21-
go-version: ${{ matrix.go }}
19+
go-version: '${{ matrix.go }}'
20+
- name: 'test'
21+
run: 'go test --race ./...'
2222

23-
- name: checkout
24-
uses: actions/checkout@v2
25-
26-
- name: test
27-
run: |
28-
go test --race ./...
29-
30-
lint:
31-
runs-on: macos-latest
23+
staticcheck:
24+
name: 'staticcheck'
25+
runs-on: 'macos-latest'
3226
steps:
33-
- name: setup Go
34-
uses: actions/setup-go@v2
35-
with:
36-
go-version: '1.17'
37-
38-
- name: checkout
39-
uses: actions/checkout@v2
40-
41-
- name: gofmt
42-
run: |
43-
test -z "$(gofmt -s -d . | tee /dev/stderr)"
44-
45-
- name: vet
46-
run: |
47-
go vet ./...
48-
49-
- name: golangci-lint
50-
uses: golangci/golangci-lint-action@v2
51-
continue-on-error: true
27+
- uses: 'actions/checkout@v4'
28+
- uses: 'actions/setup-go@v5'
5229
with:
53-
version: latest
54-
skip-go-installation: true
55-
30+
go-version: '1.22'
31+
- uses: 'actions/cache@v4'
32+
with:
33+
key: '${{ runner.os }}-staticcheck'
34+
path: |
35+
${{ runner.temp }}/staticcheck
36+
${{ steps.install_go.outputs.GOCACHE || '' }}
37+
38+
- run: |
39+
export STATICCHECK_CACHE="${{ runner.temp }}/staticcheck"
40+
go install honnef.co/go/tools/cmd/staticcheck@latest
41+
$(go env GOPATH)/bin/staticcheck ./...

AUTHORS

Lines changed: 0 additions & 22 deletions
This file was deleted.

INTERNALS.md

Lines changed: 0 additions & 84 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 The fsevents Authors. All rights reserved.
1+
Copyright © The fsevents Authors. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions are

0 commit comments

Comments
 (0)