diff --git a/.github/workflows/buck2-test.yaml b/.github/workflows/check-code-and-unit-test.yaml similarity index 75% rename from .github/workflows/buck2-test.yaml rename to .github/workflows/check-code-and-unit-test.yaml index f072fc87cb..f62dd68c40 100644 --- a/.github/workflows/buck2-test.yaml +++ b/.github/workflows/check-code-and-unit-test.yaml @@ -1,20 +1,25 @@ -name: Buck2 test +name: Check Code & Unit Test on: pull_request: branches: [main] types: [opened, synchronize, labeled, unlabeled] jobs: - buck2-test: - name: Buck2 Test + tests: + name: execute via buck2 runs-on: ubuntu-latest steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 12288 + temp-reserve-mb: 12288 - name: Install Nix uses: DeterminateSystems/nix-installer-action@v4 - name: Run the Magic Nix Cache uses: DeterminateSystems/magic-nix-cache-action@v2 - uses: actions/checkout@v3 - - name: Prepare Buck2 test args from labels + - name: Prepare buck2 test args from labels id: prepare_args run: | ARGS="" @@ -47,6 +52,9 @@ jobs: echo "Prepared args: $ARGS" echo "args=$ARGS" >> "$GITHUB_OUTPUT" - - name: Buck2 test + - name: Build via buck2 + if: steps.prepare_args.outputs.args != '' + run: nix develop -c buck2 build ${{ steps.prepare_args.outputs.args }} + - name: Run checks and tests via buck2 if: steps.prepare_args.outputs.args != '' run: nix develop -c buck2 test ${{ steps.prepare_args.outputs.args }} diff --git a/.github/workflows/bats.yml b/.github/workflows/e2e-test.yml similarity index 95% rename from .github/workflows/bats.yml rename to .github/workflows/e2e-test.yml index 8b5df6699f..4f8bc902ea 100644 --- a/.github/workflows/bats.yml +++ b/.github/workflows/e2e-test.yml @@ -1,12 +1,12 @@ -name: "Bats test" +name: "E2e test" on: pull_request: branches: [main] jobs: - integration: - name: Bats tests + tests: + name: execute via bats runs-on: ubuntu-latest timeout-minutes: 20 steps: diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index cf39a00ff4..5bdb264286 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -6,7 +6,7 @@ on: jobs: tests: - name: Integration test + name: execute via tilt runs-on: ubuntu-latest steps: - name: Maximize build space