Skip to content

Commit 2f3153d

Browse files
committed
Run unit tests only
1 parent abac8f5 commit 2f3153d

File tree

1 file changed

+1
-57
lines changed

1 file changed

+1
-57
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,6 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
prepare-versions:
11-
runs-on: ubuntu-latest
12-
outputs:
13-
matrix: ${{ steps.set-matrix.outputs.matrix }}
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v5
17-
- id: set-matrix
18-
name: Prepare
19-
run: echo "matrix=$(node -p "JSON.stringify(require('./package.json').peerDependencies['cypress'].split(' || '))")" >> $GITHUB_OUTPUT
20-
- run: npm -v
21-
22-
test:
23-
needs: prepare-versions
24-
runs-on: ubuntu-latest
25-
container:
26-
image: cypress/browsers:latest
27-
strategy:
28-
fail-fast: false
29-
matrix:
30-
cypress-version: ${{fromJson(needs.prepare-versions.outputs.matrix)}}
31-
steps:
32-
- uses: actions/setup-node@v6
33-
with:
34-
node-version: 20
35-
- name: Checkout
36-
uses: actions/checkout@v5
37-
- name: Cache NPM modules
38-
uses: actions/cache@v4
39-
with:
40-
path: ~/.npm
41-
key: npm-linux@${{ matrix.cypress-version }}
42-
- name: Cache Cypress binaries
43-
uses: actions/cache@v4
44-
with:
45-
path: ~/.cache/Cypress
46-
key: cypress-linux@${{ matrix.cypress-version }}
47-
- name: Change owner
48-
run: "chown root: ."
49-
- name: Dependencies
50-
env:
51-
CYPRESS_INSTALL_BINARY: "0"
52-
run: |
53-
npm install --engine-strict && \
54-
npm install --no-save cypress@${{ matrix.cypress-version }} && \
55-
env -u CYPRESS_INSTALL_BINARY npx cypress install
56-
- name: Build
57-
run: npm run build
58-
- name: Test
59-
run: npm run test
60-
- name: Versions
61-
run: |
62-
npx cypress --version
63-
node --version
64-
npm --version
65-
6610
windows:
6711
runs-on: windows-latest
6812
env:
@@ -93,7 +37,7 @@ jobs:
9337
- name: Remove Webpack test
9438
run: rm features/loaders/webpack.feature
9539
- name: Test
96-
run: npm run test:integration
40+
run: npm run test:unit
9741
- name: Versions
9842
run: |
9943
npx cypress --version

0 commit comments

Comments
 (0)