Skip to content

Commit c419b9a

Browse files
committed
update workflows
1 parent 5cd1395 commit c419b9a

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

Diff for: .github/workflows/docker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1111
cancel-in-progress: true
12-
defaults:
13-
run:
14-
shell: bash
1512
jobs:
1613
build:
1714
name: 'Build image'
@@ -56,10 +53,13 @@ jobs:
5653
path: /tmp
5754
- name: Load server image
5855
run: docker load --input /tmp/lean4monaco.tar
56+
shell: bash
5957
- name: Start server
6058
run: docker run -dit -p 5173:5173 -p 8080:8080 lean4monaco
59+
shell: bash
6160
- name: Run tests (electron)
6261
uses: cypress-io/github-action@v6
6362
with:
6463
browser: electron
6564
wait-on: 'http://localhost:5173'
65+
shell: bash

Diff for: .github/workflows/test.yml

+20-11
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1313
cancel-in-progress: true
14-
defaults:
15-
run:
16-
shell: bash
1714
jobs:
1815
test:
1916
strategy:
@@ -22,7 +19,7 @@ jobs:
2219
os:
2320
- ubuntu-latest
2421
- macos-latest
25-
- windows-latest
22+
# - windows-latest
2623
browser:
2724
- electron
2825
- chrome
@@ -33,14 +30,16 @@ jobs:
3330
name: Linux
3431
- os: macos-latest
3532
name: macOS
33+
# currently only one Windows test
3634
- os: windows-latest
3735
name: Windows
38-
- os: windows-latest
39-
name: Windows
40-
browser: edge
41-
exclude:
42-
- os: windows-latest
43-
browser: webkit
36+
browser: electron
37+
# - os: windows-latest
38+
# name: Windows
39+
# browser: edge
40+
# exclude:
41+
# - os: windows-latest
42+
# browser: webkit
4443

4544
name: ${{ matrix.name }} - ${{ matrix.browser }}
4645
runs-on: ${{ matrix.os }}
@@ -53,6 +52,7 @@ jobs:
5352
- name: Setup webkit (Linux)
5453
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'webkit'
5554
run: npx playwright install-deps webkit
55+
shell: bash
5656
- uses: actions/checkout@v4
5757
with:
5858
submodules: true
@@ -71,12 +71,21 @@ jobs:
7171
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
7272
bash elan-init.sh -y
7373
echo "$(realpath ~/.elan/bin)" >> $GITHUB_PATH
74+
shell: bash
7475
- uses: actions/setup-node@v4
7576
- run: npm install
76-
# - run: npm run setup_demo # included in the next step
77+
shell: bash
78+
- run: npm run setup_demo
79+
if: matrix.os != 'windows-latest'
80+
shell: bash
7781
- name: Run tests
82+
if: matrix.os != 'windows-latest'
7883
uses: cypress-io/github-action@v6
7984
with:
8085
start: npm start
8186
wait-on: 'http://localhost:5173'
8287
browser: ${{ matrix.browser }}
88+
- name: Run test (Windows)
89+
run: npm test
90+
if: matrix.os == 'windows-latest'
91+
shell: bash

0 commit comments

Comments
 (0)