-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (40 loc) · 1.13 KB
/
pull_request.yml
File metadata and controls
43 lines (40 loc) · 1.13 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
42
43
name: Continuous Integration
on: pull_request
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install package
run: yarn install --frozen-lockfile
- name: Run the linter
run: yarn lint
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install package
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn test --ci --reporters=default --reporters=jest-junit
env:
CONDUCTOR_SERVER_URL: ${{ secrets.SERVER_URL }}
CONDUCTOR_AUTH_KEY: ${{ secrets.KEY_ID }}
CONDUCTOR_AUTH_SECRET: ${{ secrets.KEY_SECRET }}
- name: Publish Test Results
if: always()
uses: dorny/test-reporter@v2
with:
name: Test report
path: reports/jest-*.xml
reporter: jest-junit