Skip to content

Commit

Permalink
checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyawk committed Apr 9, 2024
1 parent 9197493 commit af1e628
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/_reusable_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
set-up-environment:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install bazelisk
run: |
bazelisk_dir="$(realpath "$(mktemp -d -p .)")"
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,20 @@ concurrency:
cancel-in-progress: true

jobs:
set-up:
uses: ./.github/workflows/_reusable_setup.yml

unit-test:
needs: set-up
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up
uses: ./.github/workflows/_reusable_setup.yml
- name: Run unit tests
run: ./execute_tests.bash

style-check:
needs: set-up
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up
uses: ./.github/workflows/_reusable_setup.yml
- name: Run formatters and linters
run: ./style_check.bash
- name: Fail if some files are changed
Expand Down

0 comments on commit af1e628

Please sign in to comment.