Update version for the next release (vv0.13.0) #1852
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
# trying and staging branches are for BORS config | |
branches: | |
- trying | |
- staging | |
- main | |
jobs: | |
integration_tests: | |
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) | |
# Will still run for each push to bump-meilisearch-v* | |
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v') | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['18', '20'] | |
name: integration-tests (Node.js ${{ matrix.node }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./node_modules | |
key: ${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn | |
- name: Launch tests | |
run: yarn test | |
playground_build_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['18', '20'] | |
name: playground-build (Node.js ${{ matrix.node }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./node_modules | |
key: ${{ hashFiles('yarn.lock') }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./playground/node_modules | |
key: ${{ hashFiles('playground/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn --dev && yarn --cwd ./playground | |
- name: Build Strapi playground | |
run: yarn playground:build | |
linter_check: | |
runs-on: ubuntu-latest | |
name: style-check | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./node_modules | |
key: ${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn --dev | |
- name: Run style check | |
run: yarn style | |
- name: Yaml Style | |
uses: ibiqlik/action-yamllint@v3 | |
with: | |
config_file: .yamllint.yml |