-
-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (41 loc) · 1022 Bytes
/
continous-integration.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
name: continuous-integration
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
- "feature/**"
- "!all-contributors/**"
paths-ignore:
- "**/*.md"
jobs:
check:
runs-on: ubuntu-20.04
name: Check
steps:
-
uses: actions/[email protected]
-
uses: actions/[email protected]
with:
node-version: 18
- name: Cache node_modules
id: cache-node_modules
uses: actions/[email protected]
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
${{ runner.os }}-
- name: Install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
- name: Lint
run: |
yarn lint
dependabot:
needs: check
uses: ./.github/workflows/dependabot-automerge.yaml