Skip to content

Commit

Permalink
ci: fix github actions by bumping to node 18
Browse files Browse the repository at this point in the history
NestJS version 10 started using the "??=" syntax which was not being liked by lower node versions.

Also small cleanup: removed unused jest configuration and old tsdx workflows
  • Loading branch information
kepelrs committed Jul 11, 2023
1 parent a899c80 commit aa93778
Show file tree
Hide file tree
Showing 9 changed files with 10,566 additions and 8,213 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['14.x', '16.x']
node: ['18.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'
- run: cd test && npm i && cp .env-example .env && cd ..
- run: npm install -g codecov
- run: cd docs && yarn install && npm run build && cd ..
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ node_modules
dist
coverage
dev.db*
.vscode
package-lock.json
.vscode
3 changes: 1 addition & 2 deletions test/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ lerna-debug.log*
!.vscode/launch.json
!.vscode/extensions.json

.env
package-lock.json
.env
8,352 changes: 8,352 additions & 0 deletions test/package-lock.json

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,6 @@
"tsconfig-paths": "4.2.0",
"typescript": "5.1.6"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"resolutions": {
"**/@typescript-eslint/eslint-plugin": "5.60.1",
"**/@typescript-eslint/parser": "5.60.1",
Expand Down
5,664 changes: 0 additions & 5,664 deletions test/yarn.lock

This file was deleted.

32 changes: 0 additions & 32 deletions workflows/main.yml

This file was deleted.

12 changes: 0 additions & 12 deletions workflows/size.yml

This file was deleted.

Loading

0 comments on commit aa93778

Please sign in to comment.