* feat(tracker): make message commits low priority (possibly improve browser lags display), add safe polyfill for env methods hijacked by angular * feat(tracker): add bun.sh support * feat(tracker): add bun.sh support to actions * feat(tracker): add bun.sh support to actions * feat(tracker): add bun.sh support to actions * fix(tracker): fix e2e test workflow file * fix(tracker): fix e2e test workflow file * fix(tracker): fix test workflow file * fix(tracker): fix requestIdleCallback check, add test cov for new utilities * fix(tracker): fix eslint complains * fix(ui): fix yarn bug * fix(ui): fix yarn bug * fix(ui): fix yarn bug * fix(ui): fix ci test * fix(ui): fix ci test * fix(ui): fix ci test * fix(ui): fix ci test * fix(ui): fix ci test * fix(ui): fix ci test * fix(ui): fix ci test * fix(ui): debug logs * fix(ui): debug logs * fix(ui): debug logs * fix(ui): debug logs * fix(ui): remove logs * fix(ui): fix waiting for ui * fix(ui): fix? * fix(ui): fix? * fix(ui): fix? * fix(ui): fix? * fix(ui): fix! * fix(ui): fix! * fix(ui): finally
75 lines
2.1 KiB
YAML
75 lines
2.1 KiB
YAML
# Checking unit tests for tracker and assist
|
|
name: Tracker tests
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main", "dev" ]
|
|
paths:
|
|
- tracker/**
|
|
pull_request:
|
|
branches: [ "dev", "main" ]
|
|
paths:
|
|
- frontend/**
|
|
- tracker/**
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: macos-latest
|
|
name: Build and test Tracker
|
|
strategy:
|
|
matrix:
|
|
node-version: [ 18.x ]
|
|
steps:
|
|
- uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: latest
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Cache tracker modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: tracker/tracker/node_modules
|
|
key: ${{ runner.OS }}-test_tracker_build-${{ hashFiles('**/bun.lockb') }}
|
|
restore-keys: |
|
|
test_tracker_build{{ runner.OS }}-build-
|
|
test_tracker_build{{ runner.OS }}-
|
|
- name: Cache tracker-assist modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: tracker/tracker-assist/node_modules
|
|
key: ${{ runner.OS }}-test_tracker_build-${{ hashFiles('**/bun.lockb') }}
|
|
restore-keys: |
|
|
test_tracker_build{{ runner.OS }}-build-
|
|
test_tracker_build{{ runner.OS }}-
|
|
- name: Setup Testing packages
|
|
run: |
|
|
cd tracker/tracker
|
|
bun install
|
|
- name: (TA) Setup Testing packages
|
|
run: |
|
|
cd tracker/tracker-assist
|
|
bun install
|
|
- name: Jest tests
|
|
run: |
|
|
cd tracker/tracker
|
|
bun run test:ci
|
|
- name: Building test
|
|
run: |
|
|
cd tracker/tracker
|
|
bun run build
|
|
- name: (TA) Jest tests
|
|
run: |
|
|
cd tracker/tracker-assist
|
|
bun run test:ci
|
|
- name: (TA) Building test
|
|
run: |
|
|
cd tracker/tracker-assist
|
|
bun run build
|
|
- name: Upload coverage reports to Codecov
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
flags: tracker
|
|
name: tracker
|