Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Also update gofmt, some outdated patterns.
  • Loading branch information
arp242 committed May 1, 2024
1 parent 69514f1 commit 1e3c9a1
Show file tree
Hide file tree
Showing 14 changed files with 244 additions and 210 deletions.
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 ./...'

- 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

0 comments on commit 1e3c9a1

Please sign in to comment.