Skip to content

Commit 50620e7

Browse files
committed
modify action
1 parent 6abab4e commit 50620e7

File tree

2 files changed

+75
-63
lines changed

2 files changed

+75
-63
lines changed

Diff for: .github/workflows/build.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: ["main"]
99
jobs:
1010
start-server:
11+
name: Start server
1112
runs-on: ubuntu-latest
1213
# outputs:
1314
# server-url: ${{ steps.server-output.outputs.server-url }}
@@ -43,8 +44,19 @@ jobs:
4344
echo "Starting server..."
4445
nohup npm run start > nohup.out 2> nohup.err < /dev/null &
4546
echo "server is running."
46-
run-cypress:
47-
runs-on: windows-latest
47+
test:
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
include:
52+
- name: Linux
53+
os: ubuntu-latest
54+
# - name: macOS
55+
# os: macos-latest
56+
- name: Windows
57+
os: windows-latest
58+
name: ${{ matrix.name }}
59+
runs-on: ${{ matrix.os }}
4860
needs: start-server
4961
steps:
5062
- uses: actions/checkout@v4

Diff for: .github/workflows/test.yml

+61-61
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
name: Test
2-
run-name: Test editor end-to-end
3-
on:
4-
workflow_dispatch:
5-
push:
6-
branches: ["main"] # replace "main" with the default branch
7-
pull_request:
8-
branches: ["main"]
9-
concurrency:
10-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11-
cancel-in-progress: true
12-
jobs:
13-
test:
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
include:
18-
- name: Linux
19-
os: ubuntu-latest
20-
- name: macOS
21-
os: macos-latest
22-
- name: Windows
23-
os: windows-latest
24-
name: ${{ matrix.name }}
25-
runs-on: ${{ matrix.os }}
26-
steps:
27-
- uses: actions/checkout@v4
28-
with:
29-
submodules: true
30-
- uses: leanprover/lean-action@v1
31-
if: matrix.os != 'windows-latest'
32-
with:
33-
lake-package-directory: "demo/server/LeanProject"
34-
use-mathlib-cache: false
35-
build: true
36-
test: false
37-
lint: false
38-
- name: Install elan (Windows)
39-
if: matrix.os == 'windows-latest'
40-
run: |
41-
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
42-
bash elan-init.sh -y
43-
echo "$(realpath ~/.elan/bin)" >> $GITHUB_PATH
44-
shell: bash
45-
- name: Run lake build (Windows)
46-
if: matrix.os == 'windows-latest'
47-
run: |
48-
cd demo/server/LeanProject
49-
lake build
50-
shell: bash
51-
- uses: actions/setup-node@v4
52-
# Install npm dependencies, cache them correctly
53-
# and run all Cypress tests
54-
- name: Run tests
55-
uses: cypress-io/github-action@v6
56-
with:
57-
start: npm start
58-
wait-on: 'http://localhost:5173'
59-
- run: npm audit
60-
if: matrix.os == 'ubuntu-latest'
61-
continue-on-error: true
1+
# name: Test
2+
# run-name: Test editor end-to-end
3+
# on:
4+
# workflow_dispatch:
5+
# push:
6+
# branches: ["main"] # replace "main" with the default branch
7+
# pull_request:
8+
# branches: ["main"]
9+
# concurrency:
10+
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
# cancel-in-progress: true
12+
# jobs:
13+
# test:
14+
# strategy:
15+
# fail-fast: false
16+
# matrix:
17+
# include:
18+
# - name: Linux
19+
# os: ubuntu-latest
20+
# - name: macOS
21+
# os: macos-latest
22+
# - name: Windows
23+
# os: windows-latest
24+
# name: ${{ matrix.name }}
25+
# runs-on: ${{ matrix.os }}
26+
# steps:
27+
# - uses: actions/checkout@v4
28+
# with:
29+
# submodules: true
30+
# - uses: leanprover/lean-action@v1
31+
# if: matrix.os != 'windows-latest'
32+
# with:
33+
# lake-package-directory: "demo/server/LeanProject"
34+
# use-mathlib-cache: false
35+
# build: true
36+
# test: false
37+
# lint: false
38+
# - name: Install elan (Windows)
39+
# if: matrix.os == 'windows-latest'
40+
# run: |
41+
# curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
42+
# bash elan-init.sh -y
43+
# echo "$(realpath ~/.elan/bin)" >> $GITHUB_PATH
44+
# shell: bash
45+
# - name: Run lake build (Windows)
46+
# if: matrix.os == 'windows-latest'
47+
# run: |
48+
# cd demo/server/LeanProject
49+
# lake build
50+
# shell: bash
51+
# - uses: actions/setup-node@v4
52+
# # Install npm dependencies, cache them correctly
53+
# # and run all Cypress tests
54+
# - name: Run tests
55+
# uses: cypress-io/github-action@v6
56+
# with:
57+
# start: npm start
58+
# wait-on: 'http://localhost:5173'
59+
# - run: npm audit
60+
# if: matrix.os == 'ubuntu-latest'
61+
# continue-on-error: true

0 commit comments

Comments
 (0)