Skip to content

Commit

Permalink
perf: update gh actions (#4618)
Browse files Browse the repository at this point in the history
* perf: update gh actions

* fix: buck2 build

* chore: update buck2 build order
  • Loading branch information
dolcalmi authored Oct 18, 2024
1 parent 65a506c commit e5db88a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,38 @@ jobs:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 12288
root-reserve-mb: 15360
temp-reserve-mb: 12288

- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14

- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8

- name: Buck2 build
run: |
nix develop -c buck2 build //core/api //core/api-ws-server \
//core/api-keys //apps/dashboard //apps/consent //apps/pay //apps/admin-panel //apps/map //apps/voucher \
nix develop -c buck2 build //core/api \
//core/api-ws-server \
//apps/dashboard \
//apps/consent \
//apps/pay \
//apps/admin-panel \
//apps/map \
//apps/voucher \
//core/api-keys \
//core/notifications
- name: Run bats tests
run: |
nix develop -c bats --setup-suite-file bats/ci_setup_suite.bash -t bats/core/**
- name: Rename Tilt log
if: always()
run: mv bats/.e2e-tilt.log bats/e2e-tilt.log

- name: Upload Tilt log
if: always()
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 12288
root-reserve-mb: 15360
temp-reserve-mb: 12288
remove-dotnet: "true"
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
Expand Down
4 changes: 2 additions & 2 deletions bats/ci_setup_suite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ TILT_PID_FILE="${BATS_ROOT_DIR}/.tilt_pid"
setup_suite() {
background buck2 run //dev:up -- --bats=True > "${REPO_ROOT}/bats/.e2e-tilt.log"
echo $! > "$TILT_PID_FILE"
await_api_is_up
await_notifications_is_up
await_api_keys_is_up
await_api_is_up
await_pay_is_up
await_notifications_is_up
}

teardown_suite() {
Expand Down

0 comments on commit e5db88a

Please sign in to comment.