File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 62
62
echo "Working tree dirty at end of job"
63
63
exit 1
64
64
fi
65
+ compat :
66
+ name : Compat
67
+ runs-on : ubuntu-latest
68
+ needs :
69
+ - prepare
70
+ steps :
71
+ - uses : actions/checkout@v3
72
+ - name : Use Node.js ${{ matrix.node-version }}
73
+ uses : actions/setup-node@v3
74
+ with :
75
+ node-version : ${{ matrix.node-version }}
76
+ - name : Restore Yarn dependencies
77
+ uses : actions/cache@v3
78
+ with :
79
+ path : ${{ needs.prepare.outputs.YARN_CACHE_DIR }}
80
+ key : yarn-cache-${{ runner.os }}-${{ needs.prepare.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}-${{ matrix.node-version }}
81
+ - uses : legobeat/npm-actions/compat-test@dev
82
+ - name : Require clean working directory
83
+ shell : bash
84
+ run : |
85
+ if ! git diff --exit-code; then
86
+ echo "Working tree dirty at end of job"
87
+ exit 1
88
+ fi
65
89
lint :
66
90
name : Lint
67
91
runs-on : ubuntu-latest
@@ -141,6 +165,7 @@ jobs:
141
165
runs-on : ubuntu-latest
142
166
needs :
143
167
- build
168
+ - compat
144
169
- lint
145
170
- test
146
171
- check-workflows
You can’t perform that action at this time.
0 commit comments