generated from amosproj/amos202Xss0Y-projname
-
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.
Add frontend tests to github actions
Signed-off-by: Deniz Deli <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
name: Frontend Tests | ||
|
||
# Trigger on push to dev and on pull request creation, excluding "deliverables" folder | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- 'deliverables/**' | ||
pull_request: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- 'deliverables/**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout the code | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: Set up Node.js environment | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
# Step 3: Install dependencies | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
# Step 4: Run tests | ||
- name: Run tests | ||
run: npx nx run metadata-analyzer-frontend:test |