forked from pagefaultgames/pokerogue
-
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.
[CI] Add GitHub Action to Run Silent Tests on PRs to Main (pagefaultg…
…ames#2100) * github action to run tests in PR * fix the CI name * fix comment * fix divergent tests + cut some useless long test + fix versions
- Loading branch information
1 parent
2aa6ec5
commit a2d0a9e
Showing
2 changed files
with
37 additions
and
21 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: Tests | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
push: | ||
branches: | ||
- main # Trigger on push events to the main branch | ||
pull_request: | ||
branches: | ||
- main # Trigger on pull request events targeting the main branch | ||
|
||
jobs: | ||
run-tests: # Define a job named "run-tests" | ||
name: Run tests # Human-readable name for the job | ||
runs-on: ubuntu-latest # Specify the latest Ubuntu runner for the job | ||
|
||
steps: | ||
- name: Check out Git repository # Step to check out the repository | ||
uses: actions/checkout@v4 # Use the checkout action version 4 | ||
|
||
- name: Set up Node.js # Step to set up Node.js environment | ||
uses: actions/setup-node@v4 # Use the setup-node action version 4 | ||
with: | ||
node-version: 20 # Specify Node.js version 20 | ||
|
||
- name: Install Node.js dependencies # Step to install Node.js dependencies | ||
run: npm ci # Use 'npm ci' to install dependencies | ||
|
||
- name: tests # Step to run tests | ||
run: npm run test:silent |
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