Skip to content

Add Spotlight

Add Spotlight #763

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
name: "Run tests"
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
- name: Run docker images
run: docker-compose up -d
- name: Install deps
run: pnpm install
- name: Build packages
run: pnpm build
- name: Run tests
run: pnpm test:ci
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: "**/junit.xml"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}