Replace tibdex/github-app-token with actions/create-github-app-token #628
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@v5 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/workflows/bootstrap | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - uses: actions/cache@v4 | |
| 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 | |
| - name: Store test results | |
| if: success() || failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-windows | |
| path: build/output/junit-*.xml | |
| test-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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 }} | |
| - name: Store test results | |
| if: success() || failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-linux | |
| path: build/output/junit-*.xml | |
| 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@v5 | |
| - 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: ./examples/ecs-aot-smoketest/bin/Release/net9.0/${{ matrix.os.folder }}/publish/${{ matrix.os.binary }} |