-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
soheil-artix-runit
committed
Mar 27, 2024
1 parent
08f18fa
commit 66f0cbd
Showing
1 changed file
with
44 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,44 @@ | ||
# Workflow Name | ||
name: CI Workflow | ||
# Event(s) | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
# Jobs (Stages) | ||
jobs: | ||
# 1st Job (Stage) | ||
test: | ||
name: "RUN UNIT TEST" | ||
# Defaults | ||
defaults: | ||
run: | ||
shell: bash | ||
# Define the Working Directory for All RUN Steps in the Workflow | ||
working-directory: ./web | ||
# OS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "https://github.com/actions/checkout" | ||
- name: "Install Dependencies" | ||
run: npm install | ||
- name: "RUN Tests" | ||
run: npm run test | ||
# 2nd Job (Stage) | ||
lint: | ||
name: "RUN LINTER" | ||
defaults: | ||
run: | ||
shell: bash | ||
# Define the Working Directory for All RUN Steps in the Workflow | ||
working-directory: ./web | ||
# OS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "https://github.com/actions/checkout" | ||
- name: "Install Dependencies" | ||
run: npm install | ||
- name: "RUN Linter" | ||
run: npx standard -v |