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

Introduce GitHub actions + Remove Travis CI #378

Merged
merged 3 commits into from Aug 1, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,63 @@
name: test
on:
push:
pull_request:

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
go:
- '1.16'
- '1.15'
- '1.14'
- '1.13'
- '1.12'
- '1.11'
# omitting these as they fail on macos+ubuntu with "kqueue.go:18:2: cannot find package "golang.org/x/sys/unix" in any of:"
# - '1.10'
# - '1.9'
runs-on: ${{ matrix.os }}
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: checkout
uses: actions/checkout@v2

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

lint:
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2

- 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
with:
version: v1.41.1
# this is here as a workaround for https://github.com/golangci/golangci-lint-action/issues/244
skip-pkg-cache: true

36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -12,9 +12,9 @@ Cross platform: Windows, Linux, BSD and macOS.

| Adapter | OS | Status |
| --------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| inotify | Linux 2.6.27 or later, Android\* | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) |
| kqueue | BSD, macOS, iOS\* | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) |
| ReadDirectoryChangesW | Windows | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) |
| inotify | Linux 2.6.27 or later, Android\* | Supported |
| kqueue | BSD, macOS, iOS\* | Supported |
| ReadDirectoryChangesW | Windows | Supported |
| FSEvents | macOS | [Planned](https://github.com/fsnotify/fsnotify/issues/11) |
| FEN | Solaris 11 | [In Progress](https://github.com/fsnotify/fsnotify/issues/12) |
| fanotify | Linux 2.6.37+ | [Planned](https://github.com/fsnotify/fsnotify/issues/114) |
Expand Down