diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e8e2fed --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 3 + allow: + - dependency-type: "development" + update-types: + - "version-update:semver-minor" + groups: + security-updates: + applies-to: security-updates + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64fc932..9e10f78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,13 @@ name: "Unit Tests" -on: [push] +on: + push: + branches: + - main + workflow_dispatch: + pull_request: + branches: + - "*" jobs: build: @@ -8,10 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v6 with: - node-version: "24.x" - - run: npm install + node-version-file: .nvmrc + - run: npm ci + - run: npx eslint . --ext .js,.ts - run: npm test