-
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
1 parent
4235daa
commit a90bb8f
Showing
1 changed file
with
42 additions
and
0 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,42 @@ | ||
# Name of workflow | ||
name: Lint and Test workflow | ||
|
||
# Trigger workflow on all pull requests | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- staging | ||
|
||
# Jobs to carry out | ||
jobs: | ||
test: | ||
# Operating system to run job on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps in job | ||
steps: | ||
# Get code from repo | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Use Node.js 21.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 21.x | ||
|
||
# Install dependencies | ||
- name: 🧰 Install Deps | ||
run: npm install | ||
|
||
# Run lint | ||
- name: Run Lint | ||
run: npm run lint | ||
|
||
# Run build | ||
- name: Run Build | ||
run: npm run build | ||
|
||
# Run tests | ||
- name: Run Tests | ||
run: npm run test |