Skip to content

Support a JSON environment config key #28

Support a JSON environment config key

Support a JSON environment config key #28

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: on-push-build-and-test
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- Presence.SocialFormat.Lib/**
- Presence.SocialFormat.Console/**
- Presence.SocialFormat.Tests/**
- Presence.Posting.Lib/**
- Presence.Posting.Tests/**
pull_request:
branches:
- "*"
paths:
- Presence.SocialFormat.Lib/**
- Presence.SocialFormat.Console/**
- Presence.SocialFormat.Tests/**
- Presence.Posting.Lib/**
- Presence.Posting.Tests/**
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
PRESENCE_ACCOUNTS: ${{ secrets.PRESENCE_ACCOUNTS }}
TEST0_Console_PrintPrefix: ${{ secrets.TEST0_Console_PrintPrefix }}
TEST1_AT_AccountName: ${{ secrets.TEST1_AT_AccountName }}
TEST1_AT_AppPassword: ${{ secrets.TEST1_AT_AppPassword }}
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for MinVer
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Build project
run: ./build-sln.sh
- name: Run unit tests
run: ./run-unit-tests.sh
- name: Run integration tests
run: ./run-integration-tests.sh