-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
997300f
commit 23c9871
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Cypress Tests | ||
|
||
on: push | ||
|
||
jobs: | ||
cypress-run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Pull tests from cypress branch since they're excluded from the container | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
cypress | ||
package.json | ||
package-lock.json | ||
cypress.config.js | ||
# Launch TCM container | ||
- run: | | ||
mkdir config | ||
docker login "ghcr.io" -u "CollinHeist" -p "${{ secrets.GHCR_PASSWORD }}" | ||
docker run -itd -p 4242:4242 -v "./config":"/config" "ghcr.io/titlecardmaker/titlecardmaker-webui:latest" | ||
# Install cypress dependencies | ||
- run: > | ||
sudo apt-get update && | ||
sudo apt-get install -y --no-install-recommends | ||
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev | ||
libnss3 libxss1 libasound2 libxtst6 xauth xvfb | ||
# Install node | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
|
||
# Install npm dependencies, cache them correctly | ||
# and run all Cypress tests | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
start: npm run cy:run | ||
wait-on: http://localhost:4242 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v2.0-alpha.10.1-webui3 | ||
v2.0-alpha.10.1-webui4 |