File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Testing the code base against the MeiliSearch pre-releases
2
+ name : Pre-Release Tests
3
+
4
+ # Will only run for PRs and pushes to bump-meilisearch-v*
5
+ on :
6
+ push :
7
+ branches : bump-meilisearch-v*
8
+ pull_request :
9
+ branches : bump-meilisearch-v*
10
+
11
+ jobs :
12
+ integration-tests :
13
+ name : integration-tests-against-rc
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ matrix :
17
+ php-versions : ['7.4', '8.0']
18
+ name : integration-tests-against-rc (PHP ${{ matrix.php-versions }})
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - name : Install PHP
22
+ uses : shivammathur/setup-php@v2
23
+ with :
24
+ php-version : ${{ matrix.php-versions }}
25
+ - name : Validate composer.json and composer.lock
26
+ run : composer validate
27
+ - name : Install dependencies
28
+ run : composer install --prefer-dist --no-progress --quiet
29
+ - name : Get the latest MeiliSearch RC
30
+ run : echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV
31
+ - name : MeiliSearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker
32
+ run : docker run -d -p 7700:7700 getmeili/meilisearch:${{ env.MEILISEARCH_VERSION }} ./meilisearch --master-key=masterKey --no-analytics=true
33
+ - name : Check
34
+ run : curl http://127.0.0.1:7700
35
+ - name : Run test suite
36
+ run : composer test:unit
Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
integration-tests :
14
+ name : integration-tests
15
+ # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
16
+ # Will still run for each push to bump-meilisearch-v*
17
+ if : github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
14
18
runs-on : ubuntu-latest
15
19
strategy :
16
20
matrix :
You can’t perform that action at this time.
0 commit comments