ci(docs): scope pull_request triggers to integration branches (#563) #689
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: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 1.* | |
| paths-ignore: | |
| - '*.md' | |
| - '*.asciidoc' | |
| - 'docs/**' | |
| pull_request: | |
| paths-ignore: | |
| - '*.md' | |
| - '*.asciidoc' | |
| - 'docs/**' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| env: | |
| ELASTIC_STACK_VERSION: '8.4.0' | |
| jobs: | |
| test-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/workflows/bootstrap | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~\AppData\Local\ElasticManaged\elasticsearch-${{ env.ELASTIC_STACK_VERSION }} | |
| key: ${{ runner.os }}-elastic-managed-${{ env.ELASTIC_STACK_VERSION }} | |
| - name: Build the solution | |
| run: build.bat build -s true | |
| shell: cmd | |
| - name: Run tests | |
| run: build.bat test -s true | |
| shell: cmd | |
| - name: Run integration tests | |
| run: build.bat integrate -s true | |
| shell: cmd | |
| test-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/workflows/bootstrap | |
| - name: Build the solution | |
| run: ./build.sh build -s true | |
| - name: Run tests | |
| run: ./build.sh test -s true | |
| - name: Run integration tests | |
| run: ./build.sh integrate -s true | |
| - name: Run release -c false | |
| run: ./build.sh release -c false --token ${{ secrets.GITHUB_TOKEN }} | |
| aot-validate: | |
| runs-on: ${{ matrix.os.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - runner: ubuntu-latest | |
| folder: linux-x64 | |
| binary: ecs-aot-smoketest | |
| - runner: macos-latest | |
| folder: osx-arm64 | |
| binary: ecs-aot-smoketest | |
| - runner: windows-latest | |
| folder: win-x64 | |
| binary: ecs-aot-smoketest.exe | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: ./global.json | |
| - name: Publish AOT | |
| run: dotnet publish examples/ecs-aot-smoketest | |
| - name: Invoke AOT | |
| run: ./.artifacts/publish/ecs-aot-smoketest/release/${{ matrix.os.binary }} |