Skip to content

Commit a4052ce

Browse files
committed
TEST: compat integration testing using action
1 parent 7778ab6 commit a4052ce

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,30 @@ jobs:
6262
echo "Working tree dirty at end of job"
6363
exit 1
6464
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
6589
lint:
6690
name: Lint
6791
runs-on: ubuntu-latest
@@ -141,6 +165,7 @@ jobs:
141165
runs-on: ubuntu-latest
142166
needs:
143167
- build
168+
- compat
144169
- lint
145170
- test
146171
- check-workflows

0 commit comments

Comments
 (0)