File tree Expand file tree Collapse file tree 6 files changed +43
-4
lines changed Expand file tree Collapse file tree 6 files changed +43
-4
lines changed Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+ name : Test
3
+ jobs :
4
+ test :
5
+ strategy :
6
+ matrix :
7
+ go-version : [1.14.x, 1.15.x, 1.16.x]
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Install Go
11
+ uses : actions/setup-go@v1
12
+ with :
13
+ go-version : ${{ matrix.go-version }}
14
+
15
+ - name : Install wasmbrowsertest
16
+ run : |
17
+ go get github.com/agnivade/wasmbrowsertest
18
+ mv ~/go/bin/wasmbrowsertest ~/go/bin/go_js_wasm_exec
19
+
20
+ - name : Checkout code
21
+ uses : actions/checkout@v2
22
+
23
+ - name : Test
24
+ run : go test -exec="$HOME/go/bin/go_js_wasm_exec" ./...
25
+ env :
26
+ GOOS : js
27
+ GOARCH : wasm
Original file line number Diff line number Diff line change 1
1
github.com/creack/pty v1.1.9 /go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E =
2
- github.com/go-git/go-billy v1.0.0 h1:bXR6Zu3opPSg0R4dDxqaLglY4rxw7ja7wS16qSpOKL4 =
3
- github.com/go-git/go-billy v3.1.0+incompatible h1:dwrJ8G2Jt1srYgIJs+lRjA36qBY68O2Lg5idKG8ef5M =
4
2
github.com/kr/pty v1.1.1 /go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ =
5
- github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE =
6
3
github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
7
4
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
8
5
github.com/kr/text v0.2.0 /go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE =
Original file line number Diff line number Diff line change
1
+ // +build !js
2
+
1
3
// Package osfs provides a billy filesystem for the OS.
2
4
package osfs // import "github.com/go-git/go-billy/v5/osfs"
3
5
Original file line number Diff line number Diff line change 1
- // +build !plan9,!windows
1
+ // +build !plan9,!windows,!js
2
2
3
3
package osfs
4
4
Original file line number Diff line number Diff line change
1
+ // +build !js
2
+
1
3
package osfs
2
4
3
5
import (
Original file line number Diff line number Diff line change
1
+ // +build js
2
+
3
+ package osfs
4
+
5
+ import (
6
+ "github.com/go-git/go-billy/v5"
7
+ )
8
+
9
+ func New (string ) billy.Filesystem {
10
+ panic ("unsupported arch or os" )
11
+ }
You can’t perform that action at this time.
0 commit comments