|
1 | 1 | name: Test on Linux server
|
2 |
| -run-name: Test on Linux server |
| 2 | +run-name: Test editor end-to-end |
3 | 3 | on:
|
4 | 4 | workflow_dispatch:
|
5 | 5 | push:
|
6 | 6 | branches: ["main"] # replace "main" with the default branch
|
7 | 7 | pull_request:
|
8 | 8 | branches: ["main"]
|
9 | 9 | jobs:
|
10 |
| - test: |
| 10 | + |
| 11 | + build: |
11 | 12 | runs-on: ubuntu-latest
|
12 | 13 | steps:
|
13 | 14 | - uses: actions/checkout@v4
|
14 | 15 | with:
|
15 | 16 | submodules: true
|
16 |
| - - name: build docker image |
17 |
| - run: docker build --progress plain -t hhu-adam/lean4monaco . |
18 |
| - - name: start server |
19 |
| - run: docker run -dit -p 5173:5173 -p 8080:8080 hhu-adam/lean4monaco |
20 |
| - - name: Run tests |
21 |
| - uses: cypress-io/github-action@v6 |
| 17 | + - name: Set up Docker |
| 18 | + uses: docker/setup-buildx-action@v3 |
| 19 | + - name: Build cocker image |
| 20 | + uses: docker/build-push-action@v6 |
| 21 | + with: |
| 22 | + tags: lean4monaco:latest |
| 23 | + outputs: type=docker,dest=/tmp/lean4monaco.tar |
| 24 | + - name: Upload artifact |
| 25 | + uses: actions/upload-artifact@v4 |
| 26 | + with: |
| 27 | + name: lean4monaco |
| 28 | + path: /tmp/lean4monaco.tar |
| 29 | + use: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + needs: build |
| 32 | + steps: |
| 33 | + - name: Download artifact |
| 34 | + uses: actions/download-artifact@v4 |
22 | 35 | with:
|
23 |
| - browser: chrome |
24 |
| - # start: npm start |
25 |
| - wait-on: 'http://localhost:5173' |
| 36 | + name: lean4monaco |
| 37 | + 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 |
| 43 | + # test: |
| 44 | + # strategy: |
| 45 | + # fail-fast: false |
| 46 | + # matrix: |
| 47 | + # include: |
| 48 | + # - name: Linux |
| 49 | + # os: ubuntu-latest |
| 50 | + # - name: macOS |
| 51 | + # os: macos-latest |
| 52 | + # - name: Windows |
| 53 | + # os: windows-latest |
| 54 | + # runs-on: ubuntu-latest |
| 55 | + # steps: |
| 56 | + # - uses: actions/checkout@v4 |
| 57 | + # with: |
| 58 | + # submodules: true |
| 59 | + # - name: build docker image |
| 60 | + # run: docker build -t hhu-adam/lean4monaco . |
| 61 | + # - name: start server |
| 62 | + # run: docker run -dit -p 5173:5173 -p 8080:8080 hhu-adam/lean4monaco |
| 63 | + # - name: Run tests |
| 64 | + # uses: cypress-io/github-action@v6 |
| 65 | + # with: |
| 66 | + # browser: chrome |
| 67 | + # # start: npm start |
| 68 | + # wait-on: 'http://localhost:5173' |
26 | 69 |
|
27 | 70 |
|
28 | 71 | # start-server:
|
|
0 commit comments