Skip to content

Commit b9594d6

Browse files
committed
extend workflow
1 parent 42cd2bd commit b9594d6

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

Diff for: .github/workflows/build.yml

+26-10
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ on:
77
pull_request:
88
branches: ["main"]
99
jobs:
10-
1110
build:
11+
name: Build server
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: true
1717
- name: Set up Docker
1818
uses: docker/setup-buildx-action@v3
19-
- name: Build cocker image
19+
- name: Build server docker image
2020
uses: docker/build-push-action@v6
2121
with:
2222
tags: lean4monaco:latest
@@ -26,20 +26,36 @@ jobs:
2626
with:
2727
name: lean4monaco
2828
path: /tmp/lean4monaco.tar
29-
use:
30-
runs-on: ubuntu-latest
29+
test:
3130
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 }}
3243
steps:
33-
- name: Download artifact
44+
- name: Download server image
3445
uses: actions/download-artifact@v4
3546
with:
3647
name: lean4monaco
3748
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'
4359
# test:
4460
# strategy:
4561
# fail-fast: false

0 commit comments

Comments
 (0)