Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
lint:
name: 'Run lint'
uses: ./.github/workflows/run-lint.yml
tsc:
name: 'Run tsc'
uses: ./.github/workflows/run-tsc.yml
tests:
name: 'Run tests'
needs: [lint, tsc]
uses: ./.github/workflows/run-tests.yml
build:
name: 'Run tsc'
uses: ./.github/workflows/run-tsc.yml
# vercel:
# name: 'Run vercel build'
# needs: ['lint', 'tests', 'build']
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run linter
run: yarn lint
42 changes: 37 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,52 @@ on:
workflow_call

jobs:
tests:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run unit tests with coverage
run: yarn coverage
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-unit
path: coverage

e2e:
strategy:
matrix:
browser: [chrome, firefox]
name: e2e tests on ${{ matrix.browser }}
runs-on: ubuntu-22.04
container:
image: cypress/browsers:latest
options: --user 1001
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn coverage
- name: Run cypress e2e testing
uses: cypress-io/github-action@v5
with:
browser: ${{ matrix.browser }}
start: yarn d --listen 5137
wait-on: 'http://localhost:5137'
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
name: coverage-e2e
path: coverage
9 changes: 6 additions & 3 deletions .github/workflows/run-tsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn tsc --noEmit
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check types
run: yarn tsc --noEmit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ yarn-error.log*
.vercel
.env.local
.env.*.local

cypress/videos
cypress/screenshots
Loading