-
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
7 changed files
with
87 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,45 @@ | ||
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 every push to the repository | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- closed | ||
branches: | ||
- master | ||
|
||
jobs: | ||
cy-test: | ||
runs-on: ubuntu-22.04 | ||
name: Run Cypress Tests | ||
strategy: | ||
# don't fail the entire matrix on failure | ||
fail-fast: false | ||
matrix: | ||
# Run the job in parallel on different browser | ||
browser: | ||
- chrome | ||
- firefox | ||
- edge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cypress-io/github-action@v6 | ||
with: | ||
build: npm run cy:info | ||
wait-on-timeout: 120 | ||
browser: ${{ matrix.browser }} | ||
# record: true | ||
# parallel: true | ||
# group: 'Cy-${{ matrix.browser }}' | ||
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' |
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