Skip to content

Use a separate code for creating a group #59

Use a separate code for creating a group

Use a separate code for creating a group #59

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-lint:
runs-on: ubuntu-22.04
env:
CI: true
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js 18.17.1
uses: actions/setup-node@v3
with:
node-version: 18.17.1
cache: "yarn"
- name: Yarn install
run: |
yarn --immutable
- name: Build front-end
run: |
yarn build-front:prod
- name: Run Prettier
run: |
yarn prettier:check
- name: Run ESLint
run: |
yarn eslint
- name: Run stylelint
run: |
yarn stylelint
- name: TS type check
run: |
yarn type-check
- name: Cache MongoDB binary
uses: actions/cache@v3
with:
path: ~/.cache/mongodb-binaries
key: ${{ runner.os }}-mongodb
- name: Run Vitest tests
run: |
yarn test
- name: Run Playwright tests
run: |
yarn docker-compose:test
- name: Upload test results if Playwright tests failed
uses: actions/upload-artifact@v3
if: failure()
with:
name: playwright-videos
path: client/playwright/test-results/