Skip to content

Commit

Permalink
Move CI tests to GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 14, 2022
1 parent 100c9a6 commit 702d11a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 41 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,38 @@
on:
push:
branches: [ main ]
pull_request:
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.16.x,1.17.x,1.18.x]
# TODO(bep) fix windows-latest
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install staticcheck
if: matrix.go-version != '1.16.x'
run: go install honnef.co/go/tools/cmd/staticcheck@latest
shell: bash
- name: Update PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash
- name: Checkout code
uses: actions/checkout@v1
#- name: Fmt
# if: matrix.platform != 'windows-latest' # :(
# run: "diff <(gofmt -d .) <(printf '')"
# shell: bash
- name: Vet
run: go vet ./...
#- name: Staticcheck
# if: matrix.go-version != '1.16.x'
# run: staticcheck ./...
- name: Test
run: go test -race ./...
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions iofs_test.go
@@ -1,3 +1,4 @@
//go:build go1.16
// +build go1.16

package afero
Expand Down

0 comments on commit 702d11a

Please sign in to comment.