forked from Uniswap/sdks
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.48 KB
/
monorepo-integrity.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
name: "Monorepo Integrity"
on:
# pull_request:
# branches:
# - "**"
# push:
# branches:
# - main
workflow_dispatch:
jobs:
monorepo-integrity:
name: Check monorepo integrity
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
fetch-depth: 2
submodules: "true"
- name: 💽 Node and Caching
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7
with:
cache: yarn
node-version: 18
- name: 📥 yarn install
shell: bash
working-directory: ./
run: |
yarn --immutable
env:
# CI optimizations. Overrides yarnrc.yml options (or their defaults) in the CI action.
YARN_ENABLE_GLOBAL_CACHE: "false" # Use local cache folder to keep downloaded archives
YARN_NM_MODE: "hardlinks-local" # Hardlinks-local reduces io / node_modules size
HUSKY: "0" # By default do not run HUSKY install
- name: 👬🏽 Check for conflicting versions across the monorepo
run: yarn g:check:deps:mismatch
# This check will be disabled while a major version change of sdk-core is underway
- name: 👬🏽 Check for duplicate dependencies in lock file
run: yarn dedupe --check
- name: 🧑⚖️ Check for yarn constraints.pro
run: yarn constraints