Skip to content

Hanlde navigator being undefined in SSR (#6) #32

Hanlde navigator being undefined in SSR (#6)

Hanlde navigator being undefined in SSR (#6) #32

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository πŸ›’
uses: actions/checkout@v3
- name: Set node version πŸ€–
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Set up Node.js ${{ steps.nvm.outputs.NODE_VERSION }} πŸ€–
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
- name: Install dependencies πŸŒ€
run: npm install
- name: Lint the code πŸ”
run: npm run lint
- name: Run the tests πŸ§ͺ
run: npm run test --coverage --coverageReporters=lcov,text
- name: Upload coverage to Codecov πŸ“ˆ
uses: codecov/codecov-action@v3