From 1f1afdc6a339757cbe119ae98fe24cedc76f63e2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 7 Oct 2023 09:18:37 +0200 Subject: [PATCH] chore(deps-dev): bump tap from 16.3.9 to 18.4.3 (#15) * chore(deps-dev): bump tap from 16.3.9 to 18.4.3 Bumps [tap](https://github.com/tapjs/tapjs) from 16.3.9 to 18.4.3. - [Release notes](https://github.com/tapjs/tapjs/releases) - [Commits](https://github.com/tapjs/tapjs/compare/v16.3.9...tap@18.4.3) --- updated-dependencies: - dependency-name: tap dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * break: drop node 14 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Manuel Spigolon --- .github/workflows/ci.yml | 65 ++++++++++++++++++++++++++++++++++++++-- .gitignore | 1 + package.json | 6 ++-- 3 files changed, 66 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b567af..774d796 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,66 @@ on: - '*.md' jobs: + linter: + name: Lint Code + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Check out repo + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: npm i --ignore-scripts + + - name: Lint code + run: npm run lint + test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 - with: - lint: true \ No newline at end of file + name: Test + runs-on: ${{ matrix.os }} + permissions: + contents: read + strategy: + matrix: + node-version: [16, 18, 20] + os: [macos-latest, ubuntu-latest, windows-latest] + steps: + - name: Check out repo + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Setup Node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm i --ignore-scripts + + - name: Run tests + run: npm test + + automerge: + name: Automerge Dependabot PRs + if: > + github.event_name == 'pull_request' && + github.event.pull_request.user.login == 'dependabot[bot]' + needs: test + permissions: + pull-requests: write + contents: write + runs-on: ubuntu-latest + steps: + - uses: fastify/github-action-merge-dependabot@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + target: major diff --git a/.gitignore b/.gitignore index c6fd1a7..47f0f16 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,4 @@ package-lock.json .coveralls.yml .vscode/ +.tap/ \ No newline at end of file diff --git a/package.json b/package.json index 561fed8..69d2531 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,14 @@ "scripts": { "lint": "standard", "lint:fix": "standard --fix", - "test": "tap test/**/*.test.js" + "test": "tap run test/*.test.js" }, "repository": { "type": "git", "url": "git+https://github.com/Eomm/choose-it.git" }, "engines": { - "node": ">=6" + "node": ">=16" }, "keywords": [ "resource", @@ -34,7 +34,7 @@ "devDependencies": { "pre-commit": "^1.2.2", "standard": "^17.0.0", - "tap": "^16.3.0" + "tap": "^18.4.3" }, "dependencies": { "archy": "^1.0.0"