mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
name: "Collaboration"
|
|
|
|
# any branch is useful for testing before a PR is submitted
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
# run on pushes to any branch
|
|
# run on PRs from external forks
|
|
if: |
|
|
(github.event_name != 'pull_request')
|
|
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
|
name: Test
|
|
runs-on: windows-latest
|
|
|
|
|
|
steps:
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
path-type: inherit
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Install all dependencies and symlink for ep_etherpad-lite
|
|
shell: msys2 {0}
|
|
run: src/bin/installDeps.sh
|
|
|
|
- name: Install Cypress
|
|
run: npm install cypress -g
|
|
|
|
- name: Run Etherpad & Tests
|
|
run: |
|
|
node src\node\server.js &
|
|
cd src\tests\frontend
|
|
# cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser1 &
|
|
# cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser2 &
|
|
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser3 &
|
|
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser4
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
if: always()
|
|
with:
|
|
name: cypress-videos
|
|
path: src/tests/frontend/cypress/videos/
|