From 6eed7ccf3823f2d1bde3972a17b7ade28be98ac7 Mon Sep 17 00:00:00 2001 From: Abdallah Al-Barmawi Date: Wed, 3 Jan 2024 23:57:14 +0100 Subject: [PATCH] Setup workflow --- .github/workflows/checks.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..84a4d57 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,24 @@ +name: Run npm on PR + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + run-npm: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: "18" + + - name: Install dependencies + run: npm install + + - name: Run data validation + run: npm run validate