forked from dropzone/dropzone
-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (33 loc) · 1012 Bytes
/
validating.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
name: validate
on: [push, pull_request]
jobs:
run-test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18', '20' ]
name: Node ${{ matrix.node }} test
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install
- name: Build
run: yarn run build
- name: Run test
run: yarn run test
- uses: cypress-io/github-action@v6
with:
install-command : yarn install --immutable --immutable-cache
# fix issue with "Cannot find module 'cypress'"
# https://github.com/cypress-io/github-action/issues/430#issuecomment-949936528
command-prefix: yarn dlx
start: yarn start-test-server
wait-on: "http://localhost:8888"
wait-on-timeout: 5