Skip to content

Commit

Permalink
ci: edit names and steps for buck2 job
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 9, 2024
1 parent f6c092b commit 9f13a12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: [main]

jobs:
integration:
name: Bats tests
tests:
name: Execute via bats
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Buck2 test
name: Code Checks & Unit Tests
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: 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,9 +47,9 @@ jobs:
echo "Prepared args: $ARGS"
echo "args=$ARGS" >> "$GITHUB_OUTPUT"
- name: Buck2 build
- name: Build via buck2
if: steps.prepare_args.outputs.args != ''
run: nix develop -c buck2 build ${{ steps.prepare_args.outputs.args }}
- name: Buck2 test
- name: Run checks and tests via buck2
if: steps.prepare_args.outputs.args != ''
run: nix develop -c buck2 test ${{ steps.prepare_args.outputs.args }}
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

0 comments on commit 9f13a12

Please sign in to comment.