chore(deps): update github artifact actions (major) #2849
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 Test | |
| on: | |
| push: | |
| branches: [ master, integration ] | |
| pull_request: | |
| branches: [ master, integration ] | |
| jobs: | |
| build: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9 | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --configuration Debug --no-restore | |
| - name: Check formatting | |
| run: dotnet format --verify-no-changes --no-restore | |
| - name: Unit Test | |
| run: dotnet test --no-restore --verbosity normal /p:Exclude="[*.Test]*" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=TestResults/ --filter ExtractorUtils.Test.Unit. ./ExtractorUtils.Test/ | |
| if: ${{ github.event == 'pull_request' && github.base_ref == 'refs/heads/integration' }} | |
| - name: Start Redis | |
| uses: supercharge/redis-github-action@bc274cb7238cd63a45029db04ee48c07a72609fd # 1.8.1 | |
| with: | |
| redis-version: 5 | |
| - name: Test | |
| run: dotnet test --no-restore --verbosity normal /p:Exclude="[*.Test]*" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=TestResults/ ./ExtractorUtils.Test/ | |
| if: ${{ github.event != 'pull_request' || github.base_ref == 'refs/heads/master' }} | |
| env: | |
| TEST_PROJECT: "extractor-tests" | |
| TEST_HOST: "https://greenfield.cognitedata.com" | |
| TEST_SCOPE: "https://greenfield.cognitedata.com/.default" | |
| TEST_CLIENT_ID: ${{ secrets.BF_TEST_CLIENT_ID }} | |
| TEST_TENANT: ${{ secrets.BF_TEST_TENANT }} | |
| TEST_SECRET: ${{ secrets.BF_TEST_SECRET }} | |
| BF_TEST_PROJECT: "extractor-bluefield-testing" | |
| BF_TEST_HOST: "https://bluefield.cognitedata.com" | |
| BF_TEST_SCOPE: "https://bluefield.cognitedata.com/.default" | |
| BF_TEST_CLIENT_ID: ${{ secrets.BF_TEST_CLIENT_ID }} | |
| BF_TEST_TENANT: ${{ secrets.BF_TEST_TENANT }} | |
| BF_TEST_SECRET: ${{ secrets.BF_TEST_SECRET }} | |
| KEYVAULT_CLIENT_ID: ${{ secrets.KEYVAULT_CLIENT_ID }} | |
| KEYVAULT_CLIENT_SECRET: ${{ secrets.KEYVAULT_CLIENT_SECRET }} | |
| KEYVAULT_TENANT_ID: ${{ secrets.KEYVAULT_TENANT_ID }} | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |