Skip to content

Refactored skipping tests with custom attributes. #100

Refactored skipping tests with custom attributes.

Refactored skipping tests with custom attributes. #100

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
env:
spreadsheets:gig: ${{ secrets.GIG_SPREADSHEET_ID }}
spreadsheets:stock: ${{ secrets.STOCK_SPREADSHEET_ID }}
google_credentials:type: ${{ secrets.GOOGLE_CREDENTIALS_TYPE }}
google_credentials:private_key_id: ${{ secrets.GOOGLE_CREDENTIALS_PRIVATE_KEY_ID }}
google_credentials:private_key: ${{ secrets.GOOGLE_CREDENTIALS_PRIVATE_KEY }}
google_credentials:client_email: ${{ secrets.GOOGLE_CREDENTIALS_CLIENT_EMAIL }}
google_credentials:client_id: ${{ secrets.GOOGLE_CREDENTIALS_CLIENT_ID }}
run: dotnet test --no-build --verbosity normal