-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.04 KB
/
ci.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
name: Default CI Workflow
on:
pull_request:
branches: [develop, main]
workflow_dispatch:
jobs:
Build:
name: Build job
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: '0'
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- name: Check cache
uses: actions/cache@v2
id: node-cache
with:
path: '**/node_modules'
key: ubuntu-latest-node-modules-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install node modules
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci
env:
CI: true
- name: Build affected apps
uses: mansagroup/[email protected]
with:
targets: lint,build
affected: 'true'