Skip to content

Merge pull request #7 from bitterteriyaki/feature/footer #17

Merge pull request #7 from bitterteriyaki/feature/footer

Merge pull request #7 from bitterteriyaki/feature/footer #17

Workflow file for this run

name: πŸ—ƒ CI
on:
push:
pull_request:
types:
- reopened
jobs:
test:
runs-on: ubuntu-latest
name: πŸ§ͺ Test the application
strategy:
max-parallel: 4
matrix:
node-version: ['18.19.0']
steps:
- name: πŸ“‚ Checkout repository
uses: actions/checkout@v3
- name: πŸ“¦ Install Node.js (${{ matrix.node-version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 🎏 Enable corepack
run: corepack enable
- name: πŸ“¦ Install dependencies
run: pnpm install --frozen-lockfile
- name: πŸ“¦ Install Chromium
run: pnpm exec playwright-core install chromium
- name: πŸ§ͺ Run tests
run: |
pnpm run dev:prepare
pnpm run test
pnpm run lint
upload:
runs-on: ubuntu-latest
name: πŸ“ˆ Upload coverage report
strategy:
max-parallel: 4
matrix:
node-version: ['18.19.0']
steps:
- name: πŸ“‚ Checkout repository
uses: actions/checkout@v3
- name: πŸ“¦ Install Node.js (${{ matrix.node-version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 🎏 Enable corepack
run: corepack enable
- name: πŸ“¦ Install dependencies
run: pnpm install --frozen-lockfile
- name: πŸ“¦ Install Chromium
run: pnpm exec playwright-core install chromium
- name: πŸ“Š Generate coverage report
run: |
pnpm run dev:prepare
pnpm run coverage
- name: πŸ“ˆ Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: πŸ“ˆ Upload coverage report to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: pnpm run coverage
coverageLocations: coverage/cobertura-coverage.xml:cobertura