Skip to content

Commit

Permalink
Merge pull request #4 from twpayne/update-infra
Browse files Browse the repository at this point in the history
Update project infrastructure
  • Loading branch information
twpayne authored Jan 29, 2024
2 parents 6b81af2 + b3c404e commit 59cbd6c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
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

0 comments on commit 59cbd6c

Please sign in to comment.