From 803e3206029a47419ffcc6731d870670c36cbd71 Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 9 Jan 2024 07:55:46 +0530 Subject: [PATCH] Update main.yml added github actions. --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e69de29..ac4cc64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ + # Name of workflow + name: Lint workflow + # Trigger workflow on all pull requests + on: + pull_request: + branches: + - dev + - main + # 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@v3 + # Install NodeJS + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + # Build the app + - name: 🧰 install deps + run: npm install + - name: Run lint + run: npm run lint