Update README.md #575
This file contains 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: [main] | |
pull_request: | |
types: [opened, synchronize] | |
concurrency: | |
group: build-and-test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-test-cov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
- name: Restore | |
run: dotnet restore | |
working-directory: ./ | |
- name: Build | |
run: dotnet build --no-restore -c Release | |
working-directory: ./ | |
- name: Test | |
id: test | |
run: | | |
dotnet tool install --global coverlet.console | |
timeout 30m dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./coverage.info | |
shell: bash | |
env: | |
THIRDWEB_SECRET_KEY: ${{ secrets.THIRDWEB_SECRET_KEY }} | |
THIRDWEB_CLIENT_ID_BUNDLE_ID_ONLY: ${{ secrets.THIRDWEB_CLIENT_ID_BUNDLE_ID_ONLY }} | |
THIRDWEB_BUNDLE_ID_BUNDLE_ID_ONLY: ${{ secrets.THIRDWEB_BUNDLE_ID_BUNDLE_ID_ONLY }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
- name: Codecov | |
if: always() && steps.test.outcome != 'cancelled' | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./ | |
verbose: true | |
slug: thirdweb-dev/dotnet |