From 66f0cbddf40e80d5f95b19a2e28a5c4e14dcd205 Mon Sep 17 00:00:00 2001 From: soheil-artix-runit Date: Wed, 27 Mar 2024 11:56:00 +0330 Subject: [PATCH] ci.yml Created --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3b4d24f --- /dev/null +++ b/.github/workflows/ci.yml @@ -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