Skip to content

Commit 3fc2665

Browse files
committed
Update CI to latest versions of dependencies
1 parent cb88c64 commit 3fc2665

File tree

4 files changed

+50
-48
lines changed

4 files changed

+50
-48
lines changed

.github/workflows/beta-tests.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
outputs:
1515
docker-version: ${{ steps.grep-step.outputs.version }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- name: Grep docker beta version of Meilisearch
1919
id: grep-step
2020
run: |
@@ -28,25 +28,20 @@ jobs:
2828
container: cypress/browsers:node12.18.3-chrome87-ff82
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v2
32-
- name: Cache dependencies
33-
uses: actions/cache@v2
34-
with:
35-
path: |
36-
./node_modules
37-
key: ${{ hashFiles('yarn.lock') }}
31+
uses: actions/checkout@v3
3832
- name: Setup node
39-
uses: actions/setup-node@v2
33+
uses: actions/setup-node@v3
4034
with:
41-
node-version: '14.x'
35+
node-version: 16
36+
cache: yarn
4237
- name: Meilisearch (${{ needs.grep-docker-version.outputs.docker-version }}) setup with Docker
4338
run: docker run -d -p 7700:7700 getmeili/meilisearch:${{ needs.grep-docker-version.outputs.docker-version }} meilisearch --master-key=masterKey --no-analytics
4439
- name: Install dependencies
4540
run: yarn --dev && yarn --cwd ./tests/env/react
4641
- name: Setup Meilisearch Index
4742
run: yarn local:env:setup
4843
- name: Run local browser tests
49-
uses: cypress-io/github-action@v2
44+
uses: cypress-io/github-action@v3
5045
with:
5146
# Tests are only done on one playground to avoid long testing time
5247
start: yarn local:env:react
@@ -71,15 +66,15 @@ jobs:
7166
node: ['12', '14', '16']
7267
name: integration-tests (Node.js ${{ matrix.node }})
7368
steps:
74-
- uses: actions/checkout@v2
69+
- uses: actions/checkout@v3
7570
- name: Cache dependencies
7671
uses: actions/cache@v2
7772
with:
7873
path: |
7974
./node_modules
8075
key: ${{ hashFiles('yarn.lock') }}
8176
- name: Setup node
82-
uses: actions/setup-node@v2
77+
uses: actions/setup-node@v3
8378
with:
8479
node-version: '14.x'
8580
- name: Meilisearch (${{ needs.grep-docker-version.outputs.docker-version }}) setup with Docker

.github/workflows/pre-release-tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
container: cypress/browsers:node12.18.3-chrome87-ff82
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919
- name: Cache dependencies
2020
uses: actions/cache@v2
2121
with:
2222
path: |
2323
./node_modules
2424
key: ${{ hashFiles('yarn.lock') }}
2525
- name: Setup node
26-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v3
2727
with:
28-
node-version: "14.x"
28+
node-version: '14.x'
2929
- name: Install dependencies
3030
run: yarn --dev && yarn --cwd ./tests/env/react
3131
- name: Grep latest version of Meilisearch
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Meilisearch Index
4242
run: yarn local:env:setup
4343
- name: Run local browser tests
44-
uses: cypress-io/github-action@v2
44+
uses: cypress-io/github-action@v3
4545
with:
4646
# Tests are only done on one playground to avoid long testing time
4747
start: yarn local:env:react
@@ -62,10 +62,10 @@ jobs:
6262
strategy:
6363
fail-fast: false
6464
matrix:
65-
node: ["12", "14", "16"]
65+
node: ['12', '14', '16']
6666
name: integration-tests (Node.js ${{ matrix.node }})
6767
steps:
68-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@v3
6969
- name: Cache dependencies
7070
uses: actions/cache@v2
7171
with:
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ubuntu-latest
8989

9090
steps:
91-
- uses: actions/checkout@v2
91+
- uses: actions/checkout@v3
9292
- name: Cache dependencies
9393
uses: actions/cache@v2
9494
with:
@@ -107,15 +107,15 @@ jobs:
107107
runs-on: ubuntu-latest
108108
name: types-check
109109
steps:
110-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v3
111111
- name: Cache dependencies
112112
uses: actions/cache@v2
113113
with:
114114
path: |
115115
./node_modules
116116
key: ${{ hashFiles('yarn.lock') }}
117117
- name: Setup node
118-
uses: actions/setup-node@v2
118+
uses: actions/setup-node@v3
119119
- name: Install dependencies
120120
run: yarn --dev
121121
- name: Build project

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
publish-npm:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
1212
with:
1313
node-version: 12
1414
registry-url: https://registry.npmjs.org/

.github/workflows/tests.yml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,49 @@ on:
1010
- main
1111

1212
jobs:
13+
grep-docker-version:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
docker-version: ${{ steps.grep-step.outputs.version }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Grep docker beta version of Meilisearch
20+
id: grep-step
21+
run: |
22+
echo ::set-output name=version::latest
1323
cypress-run:
24+
needs: ['grep-docker-version']
1425
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
1526
# Will still run for each push to bump-meilisearch-v*
1627
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
1728
runs-on: ubuntu-latest
18-
# Only test on Google Chrome
19-
container: cypress/browsers:node12.18.3-chrome87-ff82
29+
services:
30+
meilisearch:
31+
image: getmeili/meilisearch:${{ needs.grep-docker-version.outputs.docker-version }}
32+
env:
33+
MEILI_MASTER_KEY: 'masterKey'
34+
MEILI_NO_ANALYTICS: 'true'
35+
ports:
36+
- '7700:7700'
2037
steps:
2138
- name: Checkout
22-
uses: actions/checkout@v2
23-
- name: Cache dependencies
24-
uses: actions/cache@v2
25-
with:
26-
path: |
27-
./node_modules
28-
key: ${{ hashFiles('yarn.lock') }}
39+
uses: actions/checkout@v3
2940
- name: Setup node
30-
uses: actions/setup-node@v2
41+
uses: actions/setup-node@v3
3142
with:
32-
node-version: "14.x"
33-
- name: Download the latest stable version of Meilisearch
34-
run: |
35-
curl -L https://install.meilisearch.com | sh
36-
chmod +x meilisearch
37-
- name: Run Meilisearch
38-
run: |
39-
./meilisearch --master-key=masterKey --no-analytics &
43+
node-version: '14.x'
44+
cache: yarn
4045
- name: Install dependencies
4146
run: yarn --dev && yarn --cwd ./tests/env/react
4247
- name: Setup Meilisearch Index
4348
run: yarn local:env:setup
4449
- name: Run local browser tests
45-
uses: cypress-io/github-action@v2
50+
uses: cypress-io/github-action@v3
4651
with:
52+
wait-on: 'http://localhost:7700'
4753
# Tests are only done on one playground to avoid long testing time
4854
start: yarn local:env:react
55+
browser: chrome
4956
env: playground=local
5057
- uses: actions/upload-artifact@v2
5158
if: failure()
@@ -65,10 +72,10 @@ jobs:
6572
strategy:
6673
fail-fast: false
6774
matrix:
68-
node: ["12", "14", "16"]
75+
node: ['12', '14', '16']
6976
name: integration-tests (Node.js ${{ matrix.node }})
7077
steps:
71-
- uses: actions/checkout@v2
78+
- uses: actions/checkout@v3
7279
- name: Cache dependencies
7380
uses: actions/cache@v2
7481
with:
@@ -91,7 +98,7 @@ jobs:
9198
runs-on: ubuntu-latest
9299

93100
steps:
94-
- uses: actions/checkout@v2
101+
- uses: actions/checkout@v3
95102
- name: Cache dependencies
96103
uses: actions/cache@v2
97104
with:
@@ -113,15 +120,15 @@ jobs:
113120
runs-on: ubuntu-latest
114121
name: types-check
115122
steps:
116-
- uses: actions/checkout@v2
123+
- uses: actions/checkout@v3
117124
- name: Cache dependencies
118125
uses: actions/cache@v2
119126
with:
120127
path: |
121128
./node_modules
122129
key: ${{ hashFiles('yarn.lock') }}
123130
- name: Setup node
124-
uses: actions/setup-node@v2
131+
uses: actions/setup-node@v3
125132
- name: Install dependencies
126133
run: yarn --dev
127134
- name: Build project

0 commit comments

Comments
 (0)