aa130c88da
* Update all * Pin p-retry due to ESM weirdness Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Travis Ralston <travisr@matrix.org>
38 lines
792 B
YAML
38 lines
792 B
YAML
name: Tests
|
|
on:
|
|
pull_request: { }
|
|
push:
|
|
branches: [ develop, master ]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
jest:
|
|
name: Jest
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Yarn cache
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
run: "yarn install"
|
|
|
|
- name: Build
|
|
run: "yarn build"
|
|
|
|
- name: Run tests with coverage
|
|
run: "yarn coverage --ci --reporters github-actions"
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: coverage
|
|
path: |
|
|
coverage
|
|
!coverage/lcov-report
|