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 07775a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

jobs:
integration:
tests:
name: Bats tests
runs-on: ubuntu-latest
timeout-minutes: 20
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: Code Checks & Unit Tests
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 }}

0 comments on commit 07775a6

Please sign in to comment.