try #42
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: .Net Core Tests | |
defaults: | |
run: | |
shell: bash | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "*" ] | |
paths: | |
- "**" | |
- "!**.md" | |
env: | |
DOTNET_VERSION: "9.0.x" | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Run Tests | |
run: dotnet test SqlcGenCsharpTests | |
end2end-tests: | |
name: End-to-End Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Load .env file | |
uses: xom9ikk/dotenv@v2.3.0 | |
with: | |
load-mode: strict | |
- name: Docker compose | |
uses: hoverkraft-tech/compose-action@v1.5.1 | |
- name: Run Tests | |
run: ./scripts/run_end2end_tests.sh |