Skip to content

Commit

Permalink
Merge pull request #1 from stacklok/boomerang-on-boomerang
Browse files Browse the repository at this point in the history
Use boomerang to gate boomerang
  • Loading branch information
JAORMX authored Nov 21, 2023
2 parents e0738f5 + 0f94d33 commit 055aa8c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@ jobs:
- name: setup task
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1

# Builds the bin/boomerang binary
- name: build
run: |-
task build
- name: upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: boomerang
path: bin/boomerang

lint:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -58,3 +65,27 @@ jobs:
task test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Checks that the github workflows are valid using this same tool
boomerang:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

# Fetch boomerang artifact
- name: download artifact
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3
with:
name: boomerang
path: bin/

- name: Make boomerang executable
run: |-
chmod +x bin/boomerang
- name: Bommerang
run: |-
bin/boomerang ghactions --dry-run --error

0 comments on commit 055aa8c

Please sign in to comment.