Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: separate buck2 build step #3966

Merged
merged 4 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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=""
Expand Down Expand Up @@ -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 }}
6 changes: 3 additions & 3 deletions .github/workflows/bats.yml → .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
tests:
name: Integration test
name: execute via tilt
runs-on: ubuntu-latest
steps:
- name: Maximize build space
Expand Down
Loading