From da064488cb5b63d103de233e58f9fc12571681dd Mon Sep 17 00:00:00 2001 From: Aravind N Date: Wed, 6 Dec 2023 15:32:51 +0530 Subject: [PATCH] Add GitHub action --- .github/workflows/developement.yaml | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/developement.yaml diff --git a/.github/workflows/developement.yaml b/.github/workflows/developement.yaml new file mode 100644 index 0000000..bbbfc98 --- /dev/null +++ b/.github/workflows/developement.yaml @@ -0,0 +1,55 @@ +name: Development + +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + workflow_call: + +jobs: + test: + name: Test application + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: "☁️ checkout repository" + uses: actions/checkout@v2 + + - name: "🔧 setup node" + uses: actions/setup-node@v2.1.5 + with: + node-version: 16 + + - name: "🔧 install npm@latest" + run: npm i -g npm@latest + + - name: "📦 install dependencies" + uses: bahmutov/npm-install@v1 + + - name: "🔍 run tests" + run: npm run test --if-present + + lint: + name: Code standards + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: "☁️ checkout repository" + uses: actions/checkout@v2 + + - name: "🔧 setup node" + uses: actions/setup-node@v2.1.5 + with: + node-version: 16 + + - name: "🔧 install npm@latest" + run: npm i -g npm@latest + + - name: "📦 install dependencies" + uses: bahmutov/npm-install@v1 + + - name: "🔍 lint code" + run: npm run lint --if-present \ No newline at end of file