|
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