Skip to content

Fix release and tag name #567

Fix release and tag name

Fix release and tag name #567

Workflow file for this run

name: Build and Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.200
- name: Restore tools
run: dotnet tool restore
- name: Install dependencies
run: dotnet restore
- name: Check formatting
run: |
dotnet fantomas Oryx.Cognite/src/ ./CogniteSdk.FSharp/src --check
dotnet format --include ./CogniteSdk.Types ./CogniteSdk/src ./CogniteSdk/test/csharp/ --verify-no-changes --no-restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: ./test.sh
env:
TEST_TENANT_ID_WRITE: ${{ secrets.TEST_TENANT_ID_WRITE }}
TEST_CLIENT_ID_WRITE: ${{ secrets.TEST_CLIENT_ID_WRITE }}
TEST_CLIENT_SECRET_WRITE: ${{ secrets.TEST_CLIENT_SECRET_WRITE }}
TEST_TENANT_ID_READ: ${{ secrets.TEST_TENANT_ID_READ }}
TEST_CLIENT_ID_READ: ${{ secrets.TEST_CLIENT_ID_READ }}
TEST_CLIENT_SECRET_READ: ${{ secrets.TEST_CLIENT_SECRET_READ }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.lcov
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true