fix: attempt fix visualization of params in readme files #62
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 Benchmarks | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| env: | |
| DOTNET_VERSION: '8.0.x' | |
| on: | |
| push: | |
| branches: [ "add-performance-benchmark-with-efcore" ] | |
| release: | |
| types: [ published ] | |
| workflow_dispatch: | |
| jobs: | |
| benchmark-mysql-reads: | |
| name: MySQL Reads 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_single_benchmark.sh mysql reads | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: mysql-reads-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/mysql/reads | |
| benchmark-mysql-writes: | |
| name: MySQL Writes 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_single_benchmark.sh mysql writes | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: mysql-writes-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/mysql/writes | |
| benchmark-postgresql-reads: | |
| name: PostgreSQL Reads 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_single_benchmark.sh postgresql reads | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: postgresql-reads-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/postgresql/reads | |
| benchmark-postgresql-writes: | |
| name: PostgreSQL Writes 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_single_benchmark.sh postgresql writes | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: postgresql-writes-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/postgresql/writes | |
| benchmark-sqlite-reads: | |
| name: SQLite Reads 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_single_benchmark.sh sqlite reads | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: sqlite-reads-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/sqlite/reads | |
| benchmark-sqlite-writes: | |
| name: SQLite Writes 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_single_benchmark.sh sqlite writes | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: sqlite-writes-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/sqlite/writes | |
| push-results: | |
| name: Push Results | |
| runs-on: ubuntu-latest | |
| if: always() | |
| needs: [ | |
| benchmark-mysql-reads, benchmark-mysql-writes, | |
| benchmark-postgresql-reads, benchmark-postgresql-writes, | |
| benchmark-sqlite-reads, benchmark-sqlite-writes | |
| ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download MySQL Reads Results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: mysql-reads-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/mysql/reads | |
| - name: Download MySQL Writes Results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: mysql-writes-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/mysql/writes | |
| - name: Download PostgreSQL Reads Results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: postgresql-reads-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/postgresql/reads | |
| - name: Download PostgreSQL Writes Results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: postgresql-writes-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/postgresql/writes | |
| - name: Download SQLite Reads Results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: sqlite-reads-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/sqlite/reads | |
| - name: Download SQLite Writes Results | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: sqlite-writes-results | |
| path: benchmark/BenchmarkDotNet.Artifacts/sqlite/writes | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| base: main | |
| title: update benchmark results | |
| commit-message: update benchmark results | |
| branch: update-benchmark-results | |
| branch-suffix: timestamp | |
| delete-branch: true |