19
19
GOPHERJS_PATH : ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
20
20
21
21
jobs :
22
- smoke_tests :
23
- name : Smoke Tests
24
- strategy :
25
- matrix :
26
- os : [ ubuntu-latest, macos-latest, windows-latest ]
27
- runs-on : ${{ matrix.os }}
22
+ build :
23
+ name : Ubuntu Smoke
24
+ runs-on : ubuntu-latest
28
25
steps :
29
26
- uses : actions/checkout@v4
30
27
with :
@@ -34,16 +31,15 @@ jobs:
34
31
- name : Setup GopherJS
35
32
uses : ./.github/actions/setup-gopherjs/
36
33
with :
37
- os : ${{ matrix.os }}
34
+ os : ubuntu-latest
38
35
- name : Test GopherJS
39
36
working-directory : ${{ env.GOPHERJS_PATH }}
40
37
run : go test -v -short ./...
41
38
- name : Run Tests
42
39
working-directory : ${{ env.GOPHERJS_PATH }}
43
40
run : |
44
41
gopherjs build -v net/http
45
- gopherjs test -v --short ./tests
46
- gopherjs test -v --short fmt log os sort
42
+ gopherjs test -v --short fmt log
47
43
48
44
lint :
49
45
name : Lint Checks
68
64
working-directory : ${{ env.GOPHERJS_PATH }}
69
65
# All those packages should have // +build js.
70
66
run : diff -u <(echo -n) <(go list ./compiler/natives/src/...)
67
+
68
+ windows_smoke :
69
+ name : Window Smoke
70
+ runs-on : windows-latest
71
+ steps :
72
+ - uses : actions/checkout@v4
73
+ with :
74
+ path : ${{ env.GOPHERJS_PATH }}
75
+ - name : Copy Actions
76
+ run : cp -r ${{ env.GOPHERJS_PATH }}/.github .
77
+ - name : Setup GopherJS
78
+ uses : ./.github/actions/setup-gopherjs/
79
+ with :
80
+ os : windows-latest
81
+ - name : Test GopherJS
82
+ working-directory : ${{ env.GOPHERJS_PATH }}
83
+ run : go test -v -short ./...
84
+ - name : Run Tests
85
+ working-directory : ${{ env.GOPHERJS_PATH }}
86
+ run : |
87
+ gopherjs build -v net/http
88
+ gopherjs test -v --short fmt sort ./tests
89
+
90
+ darwin_smoke :
91
+ name : Darwin Smoke
92
+ runs-on : macos-latest
93
+ steps :
94
+ - uses : actions/checkout@v4
95
+ with :
96
+ path : ${{ env.GOPHERJS_PATH }}
97
+ - name : Copy Actions
98
+ run : cp -r ${{ env.GOPHERJS_PATH }}/.github .
99
+ - name : Setup GopherJS
100
+ uses : ./.github/actions/setup-gopherjs/
101
+ with :
102
+ os : macos-latest
103
+ - name : Test GopherJS
104
+ working-directory : ${{ env.GOPHERJS_PATH }}
105
+ run : go test -v -short ./...
106
+ - name : Run Tests
107
+ working-directory : ${{ env.GOPHERJS_PATH }}
108
+ run : |
109
+ gopherjs build -v net/http
110
+ gopherjs test -v --short fmt log os ./tests
0 commit comments