Skip to content

feat: add HTML sanitization pipe (#114) #6

feat: add HTML sanitization pipe (#114)

feat: add HTML sanitization pipe (#114) #6

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install root dependencies
run: npm install
- name: Install app dependencies
run: cd app && npm install
- name: Install api dependencies
run: cd api && npm install
- name: Install sdk dependencies
run: cd xstreamroll-sdk && npm install
- name: Install processing dependencies
run: cd xstreamroll-processing && npm install
- name: Run api tests with coverage
run: cd api && npm run test:cov --if-present
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test
JWT_SECRET: test-secret
STREAM_API_KEY: test-api-key
- name: Run sdk tests with coverage
run: cd xstreamroll-sdk && npm run test:cov --if-present
- name: Run processing tests with coverage
run: cd xstreamroll-processing && npm run test:cov --if-present
- name: Upload api coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./api/coverage/lcov.info
flags: api
name: api-coverage
fail_ci_if_error: false
- name: Upload sdk coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./xstreamroll-sdk/coverage/lcov.info
flags: sdk
name: sdk-coverage
fail_ci_if_error: false
- name: Upload processing coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./xstreamroll-processing/coverage/lcov.info
flags: processing
name: processing-coverage
fail_ci_if_error: false