Update for Swift 6 #8
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: Run Tests on Elasticsearch ${{ matrix.es-version }} | |
| strategy: | |
| matrix: | |
| es-version: ["7.6.2", "8.4.1", "9.1.0"] | |
| services: | |
| elasticsearch: | |
| image: "docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.es-version }}" | |
| ports: | |
| - 9200:9200 | |
| env: | |
| discovery.type: single-node | |
| xpack.security.enabled: false | |
| options: >- | |
| --health-cmd "curl -f http://localhost:9200/_cluster/health || exit 1" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Test | |
| run: swift test |