-
-
Notifications
You must be signed in to change notification settings - Fork 198
49 lines (39 loc) · 1.49 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
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}}
- 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
- name: Show Installed Versions
run: yarn list --depth=0
- name: Run Tests
run: yarn test