Skip to content

Commit

Permalink
ci.yml Created
Browse files Browse the repository at this point in the history
  • 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.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 66f0cbd

Please sign in to comment.