name: 'build'
-on: ['push', 'pull_request']
+on:
+ push:
+ paths: ['**.go', 'go.mod', '.github/workflows/*']
+
jobs:
cross-compile:
strategy:
fail-fast: false
matrix:
- go: ['1.16', '1.18']
+ go: ['1.16', '1.19']
runs-on: ubuntu-latest
steps:
- name: setup Go
- name: build
run: |
+ set -x
for a in $(go tool dist list); do
GOOS=${a%%/*} GOARCH=${a#*/} go build
done
name: 'staticcheck'
-on: ['push', 'pull_request']
+on:
+ push:
+ paths: ['**.go', 'go.mod', '.github/workflows/*']
+
jobs:
staticcheck:
name: 'staticcheck'
name: 'test'
-on: ['push', 'pull_request']
+on:
+ push:
+ paths: ['**.go', 'go.mod', '.github/workflows/*']
+
jobs:
test:
strategy:
- windows-latest
go:
- '1.16'
- - '1.18'
+ - '1.19'
runs-on: ${{ matrix.os }}
steps:
- name: setup Go
-name: 'test'
-on: ['push', 'pull_request']
+name: 'test-vagrant'
+on:
+ push:
+ paths: ['**.go', 'go.mod', '.github/workflows/*']
+
jobs:
- test:
+ test-vagrant:
strategy:
fail-fast: false
matrix:
- name: setup Go
uses: actions/setup-go@v3
with:
- go-version: '1.18'
+ go-version: '1.19'
- name: test
run: |
-# Setup a Global .gitignore for OS and editor generated files:
-# https://help.github.com/articles/ignoring-files
-# git config --global core.excludesfile ~/.gitignore_global
+# go test -c output
+*.test
-.vagrant
-*.sublime-project
+# Output of go build ./cmd/fsnotify
+/fsnotify
go 1.16
-require golang.org/x/sys v0.0.0-20220412211240-33da011f77ad
+require golang.org/x/sys v0.0.0-20220731174439-a90be440212d
retract (
- v1.5.3 // Published an incorrect branch accidentally https://github.com/fsnotify/fsnotify/issues/445
- v1.5.0 // Contains symlink regression https://github.com/fsnotify/fsnotify/pull/394
+ v1.5.3 // Published an incorrect branch accidentally https://github.com/fsnotify/fsnotify/issues/445
+ v1.5.0 // Contains symlink regression https://github.com/fsnotify/fsnotify/pull/394
)
-golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=
-golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220731174439-a90be440212d h1:Sv5ogFZatcgIMMtBSTTAgMYsicp25MXBubjXNDKwm80=
+golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=