From d309ebafe0872bb2543acc0f2fba68e70128707e Mon Sep 17 00:00:00 2001 From: Mouhajer-CO Date: Tue, 12 Dec 2023 15:18:46 +0000 Subject: [PATCH] Add git action config for build and test --- .github/dependabot.yml | 3 ++- .github/workflows/build-and-test.yml | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 24ddada..e3a48d1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,7 @@ version: 2 + updates: - package-ecosystem: 'npm' directory: '/' schedule: - interval: 'daily' \ No newline at end of file + interval: 'weekly' \ No newline at end of file diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..160d174 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,21 @@ +name: Build and Test Checks + +on: [pull_request] + +jobs: + build-and-test: + + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - run: npm ci + - run: npm run build + - run: npm test