-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.29 KB
/
ci.yaml
File metadata and controls
41 lines (38 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: [main, next, workflow]
pull_request:
branches: [main, next]
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install yarn (required locally)
run: npm install --global yarn
- uses: actions/setup-node@v3
with:
node-version: "22"
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
run-unit-tests:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run unit tests
run: yarn test:ci
- uses: actions/upload-artifact@v4
with:
name: test-results-unit-tests
path: test-result-unit.json
- uses: dorny/test-reporter@v1.6.0
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
name: test-results / unit-tests
path: test-result-unit.json
reporter: mocha-json