absurdfarce commented on code in PR #448: URL: https://github.com/apache/cassandra-nodejs-driver/pull/448#discussion_r3075670600
########## .github/workflows/travis-ci.yml: ########## @@ -0,0 +1,84 @@ +name: Lint, TS Transpile, and Unit Tests, Migrated from Travis CI + +on: + push: + pull_request: + +jobs: + eslint: + name: Run eslint + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + cache: 'npm' + - run: npm install -g eslint@4 + - run: npm run eslint + + typescript-49: + name: TypeScript 4.9 generation and compilation tests + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + cache: 'npm' + + - run: npm install + + - run: npm install [email protected] --no-save + + - run: | + pushd test/unit/typescript/ + npx tsc -p . + node -e "require('./api-generation-test').generate()" > generated.ts + npx tsc generated.ts + + typescript-latest: + name: TypeScript (latest) generation and compilation tests + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + cache: 'npm' + - run: npm install + - run: npm install typescript --no-save # installs the newest version + - run: | + pushd test/unit/typescript/ + npx tsc -p . + node -e "require('./api-generation-test').generate()" > generated.ts + npx tsc generated.ts + + unit-tests: + name: Unit tests (Node.js ${{ matrix.node }}) + runs-on: ubuntu-22.04 + strategy: + matrix: + node: [18.x, 20.x, 22.x, 24.x] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + - run: npm install + - run: npm test Review Comment: Note that this only winds up running unit tests because of the [package.json config](https://github.com/apache/cassandra-nodejs-driver/blob/v4.8.0/package.json#L44) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
