Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimon committed Nov 21, 2023
1 parent 9990039 commit 3b24643
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ jobs:
with:
node-version: latest
cache: npm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Run checks
run: npm run check
- name: Run tests
run: npm test
- name: Build package
run: npm run build
- name: Update version in package.json
run: npm version from-git
run: npm version from-git --no-git-tag-version
- name: Publish to NPM
run: npm publish
env:
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
with:
node-version: latest
cache: npm
- run: npm install --no-save express koa
- run: npm ci
- run: npm run check
- run: npm test -- --collectCoverage
- name: Install dependencies
run: npm ci
- name: Run checks
run: npm run check
- name: Run tests with coverage
run: npm test -- --collectCoverage
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -53,13 +55,19 @@ jobs:
with:
node-version: "${{ matrix.node }}"
cache: npm
- run: npm ci
- run: npm install --no-save ${{ matrix.deps }}
- run: npm test -- tests/express
- name: Install dependencies
run: npm ci
- name: Override dependencies from matrix
run: npm install --no-save ${{ matrix.deps }}
- name: Run tests for Express
run: npm test -- tests/express
if: contains(matrix.deps, 'express')
- run: npm test -- tests/fastify
- name: Run tests for Fastify
run: npm test -- tests/fastify
if: contains(matrix.deps, 'fastify')
- run: npm test -- tests/koa
- name: Run tests for Koa
run: npm test -- tests/koa
if: contains(matrix.deps, 'koa')
- run: npm test -- tests/nestjs
- name: Run tests for NestJS
run: npm test -- tests/nestjs
if: contains(matrix.deps, 'nestjs')

0 comments on commit 3b24643

Please sign in to comment.