Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #63

Merged
merged 3 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .editorconfig

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

76 changes: 31 additions & 45 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,41 @@
name: test
on: [push]
name: 'test'
on:
pull_request:
paths: ['**.go', 'go.mod', '.github/workflows/*']
push:
branches: ['main']
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- macos-10.15
- macos-latest
go:
- '1.18.0-beta1'
- '1.17'
- '1.16'
runs-on: ${{ matrix.os }}
os: ['macos-12', 'macos-latest']
go: ['1.17', '1.22']
runs-on: '${{ matrix.os }}'
steps:
- name: setup Go
uses: actions/setup-go@v2
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
stable: 'false'
go-version: ${{ matrix.go }}
go-version: '${{ matrix.go }}'
- name: 'test'
run: 'go test -race -count=10 ./...'

- name: checkout
uses: actions/checkout@v2

- name: test
run: |
go test --race ./...

lint:
runs-on: macos-latest
staticcheck:
name: 'staticcheck'
runs-on: 'macos-latest'
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: '1.17'

- name: checkout
uses: actions/checkout@v2

- name: gofmt
run: |
test -z "$(gofmt -s -d . | tee /dev/stderr)"

- name: vet
run: |
go vet ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
continue-on-error: true
- uses: 'actions/checkout@v4'
- uses: 'actions/setup-go@v5'
with:
version: latest
skip-go-installation: true

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 ./...
22 changes: 0 additions & 22 deletions AUTHORS

This file was deleted.

84 changes: 0 additions & 84 deletions INTERNALS.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 The fsevents Authors. All rights reserved.
Copyright © The fsevents Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
Loading
Loading