Skip to content

Commit

Permalink
Adding github CI workflow for cypress tests (#114)
Browse files Browse the repository at this point in the history
* Adding github workflow for cypress tests

Signed-off-by: Suvodeep Pyne <[email protected]>

* Cosmetic. Updating cypress test

Signed-off-by: Suvodeep Pyne <[email protected]>

---------

Signed-off-by: Suvodeep Pyne <[email protected]>
  • Loading branch information
suvodeep-pyne authored May 27, 2024
1 parent 6b986a5 commit 6f81bf1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run all cypress tests

on:
push:
branches:
- main
- spyne/cypressci
pull_request:
branches:
- main

jobs:
cypress-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install dependencies
run: npm install
working-directory: ./task-launcher

- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ./task-launcher/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/task-launcher/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run cypress tests
uses: cypress-io/github-action@v6
with:
browser: chrome
working-directory: ./task-launcher
start: npm run dev

0 comments on commit 6f81bf1

Please sign in to comment.