Skip to content

Commit

Permalink
modify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 23, 2024
1 parent a6a2fcb commit 955d1fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,23 @@ jobs:
bash elan-init.sh -y
echo "$(realpath ~/.elan/bin)" >> $GITHUB_PATH
shell: bash
- uses: actions/setup-node@v4
- run: npm install
- run: npm run setup_demo
if: matrix.os != 'windows-latest'

# BUG: Somehow `lake` is not found when called through `npm` but it works on its own
- name: Run npm run setup_demo (Windows)
if: matrix.os == 'windows-latest'
run: |
concurrently \"(cd demo && npm install)\" \"npm run build\" -n install,build -c \"bgCyan.bold,bgBlue.bold\"
- name: Run lake build (Windows)
if: matrix.os == 'windows-latest'
run: |
cd demo/server/LeanProject
lake build
shell: bash
# must be after elan installation or `lake` will not be found on Windows
- uses: actions/setup-node@v4
- run: npm install
- run: npm run setup_demo

- name: Run tests
uses: cypress-io/github-action@v6
with:
Expand Down
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "cypress";

export default defineConfig({
defaultCommandTimeout: 10000, // for firefox on linux
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
Expand Down

0 comments on commit 955d1fb

Please sign in to comment.