fix: benchmarks #4
This file contains hidden or 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: Performance Benchmark | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| DOTNET_VERSION: '8.0.x' | |
| on: | |
| push: | |
| branches: [ "add-performance-benchmark-with-efcore" ] | |
| release: | |
| types: [ published ] | |
| workflow_dispatch: | |
| jobs: | |
| benchmark-mysql: | |
| name: MySQL Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Load .env file | |
| uses: xom9ikk/[email protected] | |
| with: | |
| load-mode: strict | |
| - name: Docker compose | |
| uses: hoverkraft-tech/[email protected] | |
| with: | |
| services: mysqldb | |
| - name: Run Benchmark | |
| run: ./benchmark/scripts/run_benchmark_for_db.sh mysql | |
| benchmark-postgresql: | |
| name: PostgreSQL Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Load .env file | |
| uses: xom9ikk/[email protected] | |
| with: | |
| load-mode: strict | |
| - name: Docker compose | |
| uses: hoverkraft-tech/[email protected] | |
| with: | |
| services: postgresdb | |
| - name: Run Benchmark | |
| run: ./benchmark/scripts/run_benchmark_for_db.sh postgresql | |
| benchmark-sqlite: | |
| name: SQLite Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Load .env file | |
| uses: xom9ikk/[email protected] | |
| with: | |
| load-mode: strict | |
| - name: Run Benchmark | |
| run: ./benchmark/scripts/run_benchmark_for_db.sh sqlite |