Merge pull request #432 from meilisearch/meili-bot/webinar #1084
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') | |
name: integration-tests on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["macos-latest", "ubuntu-20.04"] | |
env: | |
GITHUB_PAT: ${{ secrets.MEILIBOT_PAT_REPO }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download the latest stable version of Meilisearch | |
run: | | |
curl -L https://install.meilisearch.com | sh | |
chmod +x meilisearch | |
- name: Run Meilisearch | |
run: | | |
./meilisearch --master-key=masterKey --no-analytics & | |
- name: Run tests | |
run: swift test | |
linter: | |
name: linter-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: GitHub Action for SwiftLint | |
uses: norio-nomura/[email protected] | |
pod-spec-lint: | |
name: pod-spec-lint | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run CocoaPods pod linter | |
run: pod spec lint | |
yaml-lint: | |
name: Yaml linting check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Yaml lint check | |
uses: ibiqlik/action-yamllint@v3 | |
with: | |
config_file: .yamllint.yml |