Skip to content

chore: add github actions to add automated tests #2

chore: add github actions to add automated tests

chore: add github actions to add automated tests #2

Workflow file for this run

name: Run Cypress Tests
on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
project:
[
"angular",
# "angular-standalone",
# "react-next14-ts",
# "react-next15-ts",
# "react-vite-ts",
# "react-webpack5-js",
# "svelte-vite-ts",
# "svelte-webpack-ts",
# "vue3-vite-ts",
# "vue3-webpack-ts",
]
name: Component Tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Cypress Component Tests
uses: cypress-io/github-action@v6
with:
component: true
working-directory: "${{ matrix.project }}"
name: E2E Tests
steps:

Check failure on line 45 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
# smoke tests the sample app and makes sure everything works as expected
- name: Cypress E2E Tests
uses: cypress-io/github-action@v6
with:
start: npm start
working-directory: "${{ matrix.project }}"