refactor: clean up and optimize CSS media queries and styles #24
Workflow file for this run
This file contains 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: | |
push: | |
branches: [ master ] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Ensure correct Yarn version | |
run: corepack prepare [email protected] --activate | |
- name: Get Yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- name: Cache Yarn dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: yarn-cache-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
yarn-cache-${{ runner.os }}- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Install Playwright browsers | |
run: yarn playwright install --with-deps | |
- name: Run unit tests | |
id: unit-test | |
run: yarn jest --coverage --coverageThreshold='{"global":{"branches":70,"functions":70,"lines":70,"statements":70}}' | |
- name: Upload coverage | |
uses: codecov/codecov-action@v5 | |
if: success() || failure() | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
- name: Run e2e tests | |
id: e2e-test | |
run: yarn test:e2e | |
- name: Report Status | |
if: always() | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const unitStatus = '${{ steps.unit-test.outcome }}' | |
const e2eStatus = '${{ steps.e2e-test.outcome }}' | |
const status = unitStatus === 'success' && e2eStatus === 'success' ? 'success' : 'failure' | |
core.setOutput('status', status) |