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
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
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
|
|
|
|
uses: codecov/codecov-action@v3
|
2023-06-22 16:18:17 +08:00
|
|
|
with:
|
|
|
|
flags: unittests
|