Skip to content

Commit

Permalink
update to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed May 4, 2024
1 parent 4525b68 commit 6f8e163
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 84 deletions.
83 changes: 4 additions & 79 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,83 +16,8 @@ on:
- '*.md'

jobs:
dependency-review:
name: Dependency Review
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Dependency review
uses: actions/dependency-review-action@v4

linter:
name: Lint Code
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install dependencies
run: npm i --ignore-scripts

- name: Lint code
run: npm run lint

test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20]
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Start Kafka-instance
run: |
docker-compose up -d
- name: Install dependencies
run: npm i

- 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
uses: fastify/workflows/.github/workflows/[email protected]
with:
lint: true
license-check: true
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
},
"homepage": "https://github.com/fastify/fastify-kafka#readme",
"dependencies": {
"fastify-plugin": "^4.1.0",
"fastify-plugin": "^4.5.1",
"node-rdkafka": "3.0.1"
},
"devDependencies": {
"@types/node": "^20.1.4",
"@types/node": "^20.12.8",
"abstract-logging": "2.0.1",
"fastify": "^4.3.0",
"standard": "^17.0.0",
"tap": "^16.0.0",
"fastify": "^4.26.2",
"standard": "^17.1.0",
"tap": "^18.7.2",
"tsd": "^0.31.0"
},
"tsd": {
Expand Down

0 comments on commit 6f8e163

Please sign in to comment.