feat: Support get collection by ID endpoint (box/box-openapi#480) #441
Workflow file for this run
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: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
name: .NET 6 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build | |
run: dotnet build | |
- name: Test | |
env: | |
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }} | |
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }} | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
USER_ID: ${{ secrets.USER_ID }} | |
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }} | |
BOX_FILE_REQUEST_ID: ${{ secrets.BOX_FILE_REQUEST_ID }} | |
BOX_EXTERNAL_USER_EMAIL: ${{ secrets.BOX_EXTERNAL_USER_EMAIL }} | |
WORKFLOW_FOLDER_ID: ${{ secrets.WORKFLOW_FOLDER_ID }} | |
APP_ITEM_ASSOCIATION_FILE_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FILE_ID }} | |
APP_ITEM_ASSOCIATION_FOLDER_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FOLDER_ID }} | |
run: dotnet test --logger "console;verbosity=normal" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov | |
- name: Upload coverage report to Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./Box.Sdk.Gen.Tests.Integration/coverage.info | |
format: lcov | |
parallel: true | |
finish: | |
needs: build-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |