From f359d5a3f7d30c403e562db4a6eb2121a33639b9 Mon Sep 17 00:00:00 2001 From: Chris Reddington <791642+chrisreddington@users.noreply.github.com> Date: Tue, 29 Jul 2025 10:34:06 +0000 Subject: [PATCH 1/2] Add Dependabot configuration and CI workflow for automated dependency updates and testing --- .github/dependabot.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..46438df --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,31 @@ +# This is the dependabot configuration file that automates dependency updates +# Updates section configures how dependabot should handle dependency updates: +# +# - Monitors NPM dependencies in the root directory +# - Checks for updates weekly +# - Groups updates based on their type (dev grouped by minor/patch or prod grouped by patch) +# +# - Monitors GitHub Actions dependencies in the root directory +# - Checks for updates weekly +# +# Learn more at https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#configuration-options-for-the-dependabotyml-file +version: 2 +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + groups: + npm-development: + dependency-type: development + update-types: + - minor + - patch + npm-production: + dependency-type: production + update-types: + - patch + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fa2aeee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [22.x, 24.x] + + steps: + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build the application + run: npm run build + + - name: Run tests + run: npm test From 6e82af63ca5667eb5045ee67b4bd72525ede05f0 Mon Sep 17 00:00:00 2001 From: Chris Reddington <791642+chrisreddington@users.noreply.github.com> Date: Tue, 29 Jul 2025 10:38:26 +0000 Subject: [PATCH 2/2] Run the tests --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa2aeee..c16b392 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,8 +27,5 @@ jobs: - name: Install dependencies run: npm ci - - name: Build the application - run: npm run build - - name: Run tests - run: npm test + run: npm test \ No newline at end of file