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..c16b392 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +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: Run tests + run: npm test \ No newline at end of file