Skip to content

use FSEventStreamSetDispatchQueue instead of deprecated FSEventStreamScheduleWithRunLoop #39

use FSEventStreamSetDispatchQueue instead of deprecated FSEventStreamScheduleWithRunLoop

use FSEventStreamSetDispatchQueue instead of deprecated FSEventStreamScheduleWithRunLoop #39

Workflow file for this run

name: 'test'
on:
pull_request:
paths: ['**.go', 'go.mod', '.github/workflows/*']
push:
branches: ['main']
jobs:
test:
strategy:
fail-fast: false
matrix:
os: ['macos-12', 'macos-latest']
go: ['1.17', '1.22']
runs-on: '${{ matrix.os }}'
steps:
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
go-version: '${{ matrix.go }}'
- name: 'test'
run: 'go test -race -count=10 ./...'
staticcheck:
name: 'staticcheck'
runs-on: 'macos-latest'
steps:
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
go-version: '1.22'
- uses: 'actions/cache@v4'
with:
key: '${{ runner.os }}-staticcheck'
path: |
${{ runner.temp }}/staticcheck
${{ steps.install_go.outputs.GOCACHE || '' }}
- run: |
export STATICCHECK_CACHE="${{ runner.temp }}/staticcheck"
go install honnef.co/go/tools/cmd/staticcheck@latest
$(go env GOPATH)/bin/staticcheck ./...