-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
10 changed files
with
132 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Validate | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- closed | ||
branches: | ||
- master | ||
|
||
env: | ||
NODE_VERSION: 20.14.0 | ||
RUN_ID: ${{ github.run_id }} | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION}} | ||
|
||
- name: Install dependencies and validate linting and formatting | ||
run: | | ||
npm ci | ||
npm run validate |
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,90 @@ | ||
name: Tests | ||
|
||
on: | ||
# Triggers the workflow manually from the GitHub Actions tab | ||
workflow_dispatch: | ||
# Runs the workflow on every push to the repository | ||
push: | ||
# Runs the workflow on pull requests with specific events | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- closed | ||
branches: | ||
- master | ||
|
||
jobs: | ||
# Run tests in Chrome browser | ||
cy-chrome: | ||
runs-on: ubuntu-22.04 | ||
name: Run Cypress Tests on Chrome | ||
strategy: | ||
# don't fail the entire matrix on failure | ||
fail-fast: false | ||
matrix: | ||
# Run the job in parallel with different containers | ||
spec: | ||
- cypress/e2e/1-getting-started/* | ||
- cypress/e2e/2-advanced-examples/* | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cypress-io/github-action@v6 | ||
with: | ||
build: npm run cy:info | ||
wait-on-timeout: 120 | ||
browser: chrome | ||
# record: true | ||
# parallel: true | ||
# group: 'Cy-Chrome' | ||
spec: ${{ matrix.spec }} | ||
config-file: cypress.config.js | ||
env: | ||
# CYPRESS_PROJECT_ID: ${{ secrets.SORRY_CYPRESS_PROJECT_ID }} | ||
# CYPRESS_RECORD_KEY: ${{ secrets.SORRY_CYPRESS_RECORD_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DEBUG: 'cypress:server:args' | ||
|
||
# Run tests in Firefox browser | ||
# cy-firefox: | ||
# runs-on: ubuntu-22.04 | ||
# name: Run Cypress Tests on Firefox | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: cypress-io/github-action@v6 | ||
# with: | ||
# build: npm run cy:info | ||
# wait-on-timeout: 120 | ||
# browser: firefox | ||
# record: true | ||
# parallel: true | ||
# group: 'Cy-Firefox' | ||
# spec: cypress/e2e/* | ||
# config-file: cypress.config.js | ||
# env: | ||
# CYPRESS_PROJECT_ID: ${{ secrets.SORRY_CYPRESS_PROJECT_ID }} | ||
# CYPRESS_RECORD_KEY: ${{ secrets.SORRY_CYPRESS_RECORD_KEY }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# DEBUG: 'cypress:server:args' | ||
|
||
# # Run tests in Edge browser | ||
# cy-edge: | ||
# runs-on: ubuntu-22.04 | ||
# name: Run Cypress Tests on Edge | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: cypress-io/github-action@v6 | ||
# with: | ||
# build: npm run cy:info | ||
# wait-on-timeout: 120 | ||
# browser: edge | ||
# record: true | ||
# parallel: true | ||
# group: 'Cy-Edge' | ||
# spec: cypress/e2e/* | ||
# config-file: cypress.config.js | ||
# env: | ||
# CYPRESS_PROJECT_ID: ${{ secrets.SORRY_CYPRESS_PROJECT_ID }} | ||
# CYPRESS_RECORD_KEY: ${{ secrets.SORRY_CYPRESS_RECORD_KEY }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# DEBUG: 'cypress:server:args' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"id": 8739, | ||
"name": "Jane", | ||
"email": "jane@example.com" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -229,4 +229,4 @@ | |
"bs": "target end-to-end models" | ||
} | ||
} | ||
] | ||
] |
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 @@ | ||
{} | ||
{} |
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