ci: add permissions to caller jobs and upgrade release-please-action to v5 #47
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: Build and run | |
| on: | |
| push: | |
| branches: [ main, 'feat/**' ] | |
| paths-ignore: | |
| - '**.md' # Do not need to run CI for markdown changes. | |
| pull_request: | |
| branches: [ main, 'feat/**' ] | |
| paths-ignore: | |
| - '**.md' | |
| workflow_call: | |
| jobs: | |
| build-and-run: | |
| strategy: | |
| matrix: | |
| target: | |
| - os: windows-latest | |
| - os: ubuntu-latest | |
| fail-fast: false | |
| runs-on: ${{ matrix.target.os }} | |
| permissions: | |
| id-token: write # Needed if using OIDC to get release secrets. | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup dotnet build tools | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0 | |
| - run: dotnet restore | |
| - run: dotnet build src/LaunchDarkly.EventSource/LaunchDarkly.EventSource.csproj | |
| - run: dotnet test test/LaunchDarkly.EventSource.Tests/LaunchDarkly.EventSource.Tests.csproj | |
| - name: build docs | |
| uses: ./.github/actions/build-docs |