Merge branch 'main' of github.com:team-nameless/msoc-web #63
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: Sanity check | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
types: [opened, reopened, synchronize, assigned] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Provide internal config file | |
shell: bash | |
env: | |
SUPER_CONFIG: ${{ secrets.CONFIG }} | |
run: | | |
echo "$SUPER_CONFIG" > /home/runner/work/msoc-web/msoc-web/MSOC.Backend/config.json | |
- name: Restore NuGet packages | |
run: dotnet restore | |
- name: Run tests | |
run: dotnet test MSOC.Backend.Tests -c Release --nologo --no-restore |