-
-
Notifications
You must be signed in to change notification settings - Fork 199
51 lines (40 loc) · 1.57 KB
/
low-depends.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: Low Dependencies
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
locked:
name: Node ${{ matrix.node-versions }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2019]
node-versions: ['18', '20', '22']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node ${{matrix.node-versions}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-versions}}
- run: corepack enable
- name: Remove Lock File
run: rm yarn.lock
- name: Force Lowest Dependencies
run: node ./scripts/force-lowest-dependencies
# We have some tests that need to "git checkout" package.json file.
# Commit them prevent the tests from re-using the locked dependencies.
- name: Commit Changes, to preserve a clean working directory
run: |
git config --global user.email ""
git config --global user.name "Symfony"
git commit -am "Force Lowest Dependencies"
- name: Install Yarn Dependencies
run: yarn install --mode update-lockfile && yarn install
- name: Show Installed Versions
run: yarn info --name-only
- name: Run Tests
run: yarn test