Skip to content

initial commit

initial commit #1

Workflow file for this run

# This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
pull_request:
branches: [main]
jobs:
basic-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 24.x
uses: actions/setup-node@v5
with:
node-version: 24.x
cache: 'npm'
- run: npm ci
- run: node ./generate-rulesets.ts
- run: node ./generate-data-providers.ts
- run: ./node_modules/.bin/eslint --fix ./generated-src/*.ts ./tests/generated/*.ts
- run: ./node_modules/.bin/tsc --project ./tsconfig.app-check.json
- run: ./node_modules/.bin/prettier . --check
- run: ./node_modules/.bin/eslint --config eslint.config.js.mjs './**/*.mjs'
- run: ./node_modules/.bin/eslint --cache './**/*.ts'
coverage:
if: github.event.repository.visibility == 'public'
needs: basic-checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 24.x
uses: actions/setup-node@v5
with:
node-version: 24.x
cache: 'npm'
- run: npm ci
- run: node ./generate-rulesets.ts
- run: node ./generate-data-providers.ts
- run: ./node_modules/.bin/eslint --fix ./generated-src/*.ts ./tests/generated/*.ts
- name: Generate coverage
run: ./node_modules/.bin/c8 --config=./.c8rc.coveralls.json node ./tests.ts
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.2.3
with:
file: './coverage/lcov.info'