2022-10-26 16:48:04 +08:00
|
|
|
name: Run jest tests
|
|
|
|
on:
|
|
|
|
pull_request: {}
|
2023-06-26 17:53:29 +08:00
|
|
|
push:
|
2023-06-27 16:02:40 +08:00
|
|
|
branches: [livekit, full-mesh]
|
2022-10-26 16:48:04 +08:00
|
|
|
jobs:
|
|
|
|
jest:
|
|
|
|
name: Run jest tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-19 17:24:34 +08:00
|
|
|
uses: actions/checkout@v4
|
2022-10-26 16:48:04 +08:00
|
|
|
- name: Yarn cache
|
2023-10-24 00:19:30 +08:00
|
|
|
uses: actions/setup-node@v4
|
2022-10-26 16:48:04 +08:00
|
|
|
with:
|
|
|
|
cache: "yarn"
|
|
|
|
- name: Install dependencies
|
|
|
|
run: "yarn install"
|
|
|
|
- name: Jest
|
|
|
|
run: "yarn run test"
|
2023-06-15 00:36:26 +08:00
|
|
|
- name: Upload to codecov
|
2024-02-01 18:59:26 +08:00
|
|
|
uses: codecov/codecov-action@v4
|
2023-06-22 16:18:17 +08:00
|
|
|
with:
|
|
|
|
flags: unittests
|