-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (53 loc) · 1.23 KB
/
main.yml
File metadata and controls
54 lines (53 loc) · 1.23 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
51
52
53
54
name: DevOps
on:
push:
branches:
- v4.x
- v4.*
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install Dependencies
run: |
yarn install
- name: Lint
run: |
yarn lint
prettier:
name: Prettier
runs-on: ubuntu-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install Dependencies
run: |
yarn install
- name: Prettier
run: |
yarn prettier:check
build:
name: Build Webpack Bundle
runs-on: ubuntu-latest
needs: [ lint, prettier ]
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
yarn install
npm i -g lerna
yarn lerna link --force-local && yarn lerna bootstrap --force-local
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
lerna run --scope @incodelang/app webpack:build-prod