-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (46 loc) · 1.15 KB
/
pr-checks.yml
File metadata and controls
50 lines (46 loc) · 1.15 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
44
45
46
47
48
49
50
#
# Copyright (c) 2022-2024
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
name: PR Checks
on:
pull_request:
branches:
- main
jobs:
dash-licenses:
runs-on: ubuntu-22.04
if: ${{ github.base_ref == 'main' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node 24
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install dependencies
run: yarn install
- name: Check dependencies usage restrictions
run: yarn license:check
unit-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 20.18.0
- name: Install yarn deps
run: yarn install
- name: Run eslint
run: yarn lint
- name: Run unit tests
run: yarn test