-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (70 loc) · 1.88 KB
/
sdk-js-pr-checks.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: js-sdk::checks
on:
pull_request:
branches:
- dev
- dev/*
- main
- main/*
jobs:
run-build:
name: js-sdk::build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js
steps:
- name: js-sdk::Check out Git repository
uses: actions/checkout@v3
- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: js-sdk::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: js-sdk::Build
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run-lint:
name: js-sdk::lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js
steps:
- name: js-sdk::Check out Git repository
uses: actions/checkout@v3
- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
# ESLint and Prettier must be in `package.json`
- name: js-sdk::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: js-sdk::Run linters
run: npm run ci:format
run-test:
name: js-sdk::test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js
steps:
- name: js-sdk::Check out Git repository
uses: actions/checkout@v3
- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
# ESLint and Prettier must be in `package.json`
- name: js-sdk::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: js-sdk::Run tests
run: npm run test