-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (49 loc) · 1.22 KB
/
i18nify-js-validate.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
name: (i18nify-js) Build & Validate
on:
pull_request:
defaults:
run:
working-directory: packages/i18nify-js
jobs:
# JOB to run change detection
check-if-i18nify-js:
runs-on: ubuntu-latest
outputs:
modified: ${{ steps.filter.outputs.src }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- 'packages/i18nify-js/**'
validate:
name: Validate Source code
runs-on: ubuntu-latest
needs: check-if-i18nify-js
if: ${{ needs.check-if-i18nify-js.outputs.modified == 'true' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 20.3.1
- name: Install dependencies
run: yarn
- name: run eslint
run: yarn lint
- name: run tsc
run: yarn tsc
build:
name: Run Build
runs-on: ubuntu-latest
needs: check-if-i18nify-js
if: ${{ needs.check-if-i18nify-js.outputs.modified == 'true' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 20.3.1
- name: Install dependencies
run: yarn
- name: run build
run: yarn build