diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml new file mode 100644 index 0000000000..f862b17042 --- /dev/null +++ b/.github/workflows/bench.yml @@ -0,0 +1,39 @@ +name: Tests + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest-16-cores + services: + postgres: + image: postgres:12.1-alpine + ports: + - 5432:5432 + # needed because the postgres container does not provide a healthcheck + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup + + - name: Build + uses: ./.github/actions/build + + - name: Install end-to-end testing dependencies + working-directory: ./e2e + run: pnpm install + + - name: Generate test data + working-directory: ./e2e + run: pnpm run generate-test-data-records + + - name: Run benchmarks + run: pnpm run bench diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35fca5ce0a..d61aae167f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,10 +46,3 @@ jobs: - name: Outdated files, run `sort-package-json` and commit them uses: ./.github/actions/require-empty-diff - - - name: Generate test data - working-directory: ./e2e - run: pnpm run generate-test-data-records - - - name: Run benchmarks - run: pnpm run bench