forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 1.65 KB
/
js.yml
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
name: JS
on:
push:
paths:
- mlflow/server/js/**
- .github/workflows/js.yml
branches:
- master
- branch-[0-9]+.[0-9]+
pull_request:
paths:
- mlflow/server/js/**
- .github/workflows/js.yml
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
js:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: pwsh
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
working-directory: mlflow/server/js
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Disable problem matcher
if: runner.os == 'Windows'
run: |
echo "::remove-matcher owner=eslint-compact::"
echo "::remove-matcher owner=eslint-stylish::"
- name: Install dependencies
run: |
yarn install
git diff --exit-code
- name: Run lint
run: |
yarn run lint
- name: Run extract-i18n lint
run: |
yarn run extract-i18n:base --lint
- name: Run tests
run: |
yarn run test
- name: Run build
if: runner.os == 'Linux'
env:
# Prevent warnings (emitted from react-pdf) from being treated as errors
# https://github.com/wojtekmaj/react-pdf/issues/280
CI: false
run: |
yarn run build