File tree 1 file changed +26
-10
lines changed
1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
branches : ["main"]
9
9
jobs :
10
-
11
10
build :
11
+ name : Build server
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
15
with :
16
16
submodules : true
17
17
- name : Set up Docker
18
18
uses : docker/setup-buildx-action@v3
19
- - name : Build cocker image
19
+ - name : Build server docker image
20
20
uses : docker/build-push-action@v6
21
21
with :
22
22
tags : lean4monaco:latest
@@ -26,20 +26,36 @@ jobs:
26
26
with :
27
27
name : lean4monaco
28
28
path : /tmp/lean4monaco.tar
29
- use :
30
- runs-on : ubuntu-latest
29
+ test :
31
30
needs : build
31
+ strategy :
32
+ fail-fast : false
33
+ matrix :
34
+ include :
35
+ - name : Linux
36
+ os : ubuntu-latest
37
+ - name : macOS
38
+ os : macos-latest
39
+ - name : Windows
40
+ os : windows-latest
41
+ name : ${{ matrix.name }}
42
+ runs-on : ${{ matrix.os }}
32
43
steps :
33
- - name : Download artifact
44
+ - name : Download server image
34
45
uses : actions/download-artifact@v4
35
46
with :
36
47
name : lean4monaco
37
48
path : /tmp
38
- - name : Load image
39
- run : |
40
- docker load --input /tmp/lean4monaco.tar
41
- docker image ls -a
42
- docker run -dit -p 5173:5173 -p 8080:8080 lean4monaco
49
+ - name : Load server image
50
+ run : docker load --input /tmp/lean4monaco.tar
51
+ - name : Start server
52
+ run : docker run -dit -p 5173:5173 -p 8080:8080 lean4monaco
53
+ - name : Run tests
54
+ uses : cypress-io/github-action@v6
55
+ with :
56
+ # browser: chrome
57
+ # start: npm start
58
+ wait-on : ' http://localhost:5173'
43
59
# test:
44
60
# strategy:
45
61
# fail-fast: false
You can’t perform that action at this time.
0 commit comments