Skip to content

Merge pull request #3 from semanticintent/dependabot/github_actions/a… #21

Merge pull request #3 from semanticintent/dependabot/github_actions/a…

Merge pull request #3 from semanticintent/dependabot/github_actions/a… #21

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
test:
name: Test & Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type check
run: npm run type-check
- name: Run tests
run: npm test
- name: Run tests with coverage
run: npm run test:coverage
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
- name: Comment coverage on PR
if: github.event_name == 'pull_request'
uses: romeovs/[email protected]
with:
lcov-file: ./coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
lint:
name: Lint & Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Biome format check
run: npx @biomejs/biome format --write=false .
continue-on-error: true
- name: Run Biome lint
run: npx @biomejs/biome lint .
continue-on-error: true