-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
013d71c
commit 3dd95f2
Showing
2 changed files
with
18 additions
and
1 deletion.
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,17 @@ | ||
name: Test PUSH action | ||
on: push | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest #nodejs preinstalled on the ubuntu runner | ||
steps: | ||
#action needs specific access to download the code from the repository onto this runner or this server | ||
- name: Get code | ||
uses: actions/checkout@v4 | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci #npm ci is best practice over npm i | ||
- name: Run tests | ||
run: npm test |
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,7 +2,7 @@ node_modules | |
.env | ||
.DS_Store | ||
build/ | ||
dist/ | ||
dist/* | ||
coverage/ | ||
package-lock.json | ||
dist/ |