1111jobs :
1212 cypress-run :
1313 runs-on : ubuntu-latest
14- # Only test on Google Chrome
15- container : cypress/browsers:node12.18.3-chrome87-ff82
1614 steps :
1715 - name : Checkout
1816 uses : actions/checkout@v3
19- - name : Cache dependencies
20- uses : actions/cache@v2
21- with :
22- path : |
23- ./node_modules
24- key : ${{ hashFiles('yarn.lock') }}
2517 - name : Setup node
2618 uses : actions/setup-node@v3
2719 with :
28- node-version : ' 14.x'
20+ node-version : 16
21+ cache : yarn
2922 - name : Install dependencies
3023 run : yarn --dev && yarn --cwd ./tests/env/react
3124 - name : Grep latest version of Meilisearch
@@ -41,17 +34,18 @@ jobs:
4134 - name : Setup Meilisearch Index
4235 run : yarn local:env:setup
4336 - name : Run local browser tests
44- uses : cypress-io/github-action@v3
37+ uses : cypress-io/github-action@v2
4538 with :
39+ wait-on : ' http://localhost:7700'
4640 # Tests are only done on one playground to avoid long testing time
4741 start : yarn local:env:react
4842 env : playground=local
49- - uses : actions/upload-artifact@v2
43+ - uses : actions/upload-artifact@v3
5044 if : failure()
5145 with :
5246 name : cypress-screenshots
5347 path : cypress/screenshots
54- - uses : actions/upload-artifact@v2
48+ - uses : actions/upload-artifact@v3
5549 if : failure()
5650 with :
5751 name : cypress-videos
@@ -66,12 +60,11 @@ jobs:
6660 name : integration-tests (Node.js ${{ matrix.node }})
6761 steps :
6862 - uses : actions/checkout@v3
69- - name : Cache dependencies
70- uses : actions/cache@v2
63+ - name : Setup node
64+ uses : actions/setup-node@v3
7165 with :
72- path : |
73- ./node_modules
74- key : ${{ hashFiles('yarn.lock') }}
66+ cache : yarn
67+ node-version : ${{ matrix.node }}
7568 - name : Get the latest Meilisearch RC
7669 run : echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV
7770 - name : Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker
8275 run : yarn test
8376 - name : Build project
8477 run : yarn build
85-
86- style :
87- name : style-check
88- runs-on : ubuntu-latest
89-
90- steps :
91- - uses : actions/checkout@v3
92- - name : Cache dependencies
93- uses : actions/cache@v2
94- with :
95- path : |
96- ./node_modules
97- key : ${{ hashFiles('yarn.lock') }}
98- - name : Install dependencies
99- run : yarn install
100- - name : Tests style
101- run : yarn lint
102- - name : Yaml Style
103- uses : ibiqlik/action-yamllint@v3
104- with :
105- config_file : .yamllint.yml
106- types_test :
107- runs-on : ubuntu-latest
108- name : types-check
109- steps :
110- - uses : actions/checkout@v3
111- - name : Cache dependencies
112- uses : actions/cache@v2
113- with :
114- path : |
115- ./node_modules
116- key : ${{ hashFiles('yarn.lock') }}
117- - name : Setup node
118- uses : actions/setup-node@v3
119- - name : Install dependencies
120- run : yarn --dev
121- - name : Build project
122- run : yarn build
123- - name : Run types check
124- run : yarn types
0 commit comments