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

Update project infrastructure #4

Merged
merged 1 commit into from
Jan 29, 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
39 changes: 15 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main
name: main
on:
pull_request:
push:
Expand All @@ -7,29 +7,20 @@ on:
tags:
- v*
jobs:
Test:
runs-on: ubuntu-20.04
test:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.0
# FIXME re-enable when not broken
# - name: Cache Go modules
# uses: actions/cache@v2
# with:
# path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
- name: Checkout
uses: actions/checkout@v2
- name: Build
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
- name: build
run: go build ./...
- name: Test
- name: test
run: go test ./...
# FIXME re-enable when not broken
# - name: Lint
# uses: golangci/golangci-lint-action@v2
# with:
# version: v1.37.0
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
- uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
with:
version: v1.52.2
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/twpayne/go-vfsafero/v2

go 1.16
go 1.20

require (
github.com/spf13/afero v1.1.2
Expand Down
4 changes: 3 additions & 1 deletion vfsafero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func TestAferoFS(t *testing.T) {
defer cleanup()

aferoFS := NewAferoFS(fs)
afero.WriteFile(aferoFS, "/home/user/foo", []byte("bar"), 0666)
if err := afero.WriteFile(aferoFS, "/home/user/foo", []byte("bar"), 0666); err != nil {
t.Fatal(err)
}

vfst.RunTests(t, fs, "",
vfst.TestPath("/home/user/foo",
Expand Down
Loading