fix(telegram): markdown not being correctly set and release #2266
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: [pull_request] | |
| jobs: | |
| unit: | |
| name: Unit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Fetch Node Packages | |
| run: | | |
| yarn --immutable | |
| - name: Run tests | |
| run: | | |
| yarn test:unit --coverage --verbose | |
| integration: | |
| name: Integration | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| database: ['sqlite', 'postgres'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - name: Set up PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| run: | | |
| docker run -d -p 5432:5432 \ | |
| -e POSTGRES_PASSWORD=postgres \ | |
| -e POSTGRES_USER=postgres \ | |
| -e POSTGRES_DB=postgres \ | |
| postgres:latest | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Fetch Node Packages | |
| run: | | |
| yarn --immutable | |
| - name: Await PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| timeout-minutes: 2 | |
| run: until pg_isready -h localhost; do sleep 1; done | |
| - name: Run tests | |
| run: | | |
| yarn test:int --coverage --verbose | |
| env: | |
| DATABASE_URL: ${{ matrix.database == 'postgres' && 'postgres://postgres:postgres@localhost:5432' || '' }} | |
| e2e: | |
| name: E2E | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| database: ['sqlite', 'postgres'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - name: Set up PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| run: | | |
| docker run -d -p 5432:5432 \ | |
| -e POSTGRES_PASSWORD=postgres \ | |
| -e POSTGRES_USER=postgres \ | |
| -e POSTGRES_DB=postgres \ | |
| postgres:latest | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Fetch Node Packages | |
| run: | | |
| yarn --immutable | |
| - name: Await PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| timeout-minutes: 2 | |
| run: until pg_isready -h localhost; do sleep 1; done | |
| - name: Run tests | |
| run: | | |
| yarn test:e2e --coverage --verbose | |
| env: | |
| DATABASE_URL: ${{ matrix.database == 'postgres' && 'postgres://postgres:postgres@localhost:5432' || '' }} | |
| security: | |
| name: Security | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| database: ['sqlite', 'postgres'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - name: Set up PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| run: | | |
| docker run -d -p 5432:5432 \ | |
| -e POSTGRES_PASSWORD=postgres \ | |
| -e POSTGRES_USER=postgres \ | |
| -e POSTGRES_DB=postgres \ | |
| postgres:latest | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Fetch Node Packages | |
| run: | | |
| yarn --immutable | |
| - name: Await PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| timeout-minutes: 2 | |
| run: until pg_isready -h localhost; do sleep 1; done | |
| - name: Run tests | |
| run: | | |
| yarn test:sec --verbose | |
| env: | |
| DATABASE_URL: ${{ matrix.database == 'postgres' && 'postgres://postgres:postgres@localhost:5432' || '' }} | |
| migration: | |
| name: Migration | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| database: ['sqlite', 'postgres'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - name: Set up PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| run: | | |
| docker run -d -p 5432:5432 \ | |
| -e POSTGRES_PASSWORD=postgres \ | |
| -e POSTGRES_USER=postgres \ | |
| -e POSTGRES_DB=postgres \ | |
| postgres:latest | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Fetch Node Packages | |
| run: | | |
| yarn --immutable | |
| - name: Await PostgreSQL | |
| if: ${{ matrix.database == 'postgres' }} | |
| timeout-minutes: 2 | |
| run: until pg_isready -h localhost; do sleep 1; done | |
| - name: Run tests | |
| run: | | |
| yarn test:mig --verbose | |
| env: | |
| DATABASE_URL: ${{ matrix.database == 'postgres' && 'postgres://postgres:postgres@localhost:5432' || '' }} | |
| webchat: | |
| name: Webchat | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| browser: ['chrome', 'firefox'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install Firefox (Non-Snap) | |
| run: | | |
| sudo snap remove firefox || true | |
| sudo apt update | |
| sudo apt install -y firefox-esr | |
| - name: Verify Browsers in Cypress | |
| run: yarn cypress info | |
| - name: Fetch Node Packages | |
| run: | | |
| yarn --immutable | |
| yarn build | |
| - name: Run e2e tests | |
| run: | | |
| xvfb-run --auto-servernum yarn cypress run --browser ${{ matrix.browser }} | |
| - name: Run unit tests | |
| working-directory: ./packages/inject | |
| run: yarn test |