Skip to content

Commit

Permalink
Fix CI with repo name change
Browse files Browse the repository at this point in the history
  • Loading branch information
JAORMX committed Nov 21, 2023
1 parent 99a379b commit cf2968c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches:
- main

env:
BINARY_NAME: frizbee

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -21,16 +25,16 @@ jobs:
- name: setup task
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1

# Builds the bin/boomerang binary
# Builds the binary into the bin/ directory
- name: build
run: |-
task build
- name: upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: boomerang
path: bin/boomerang
name: ${{ env.BINARY_NAME }}
path: bin/{{ env.BINARY_NAME }}

lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,25 +71,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Checks that the github workflows are valid using this same tool
boomerang:
frizbee:
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
name: ${{ env.BINARY_NAME }}
path: bin/

- name: Make boomerang executable
- name: Make ${{ env.BINARY_NAME }} executable
run: |-
chmod +x bin/boomerang
chmod +x bin/${{ env.BINARY_NAME }}
- name: Bommerang
run: |-
bin/boomerang ghactions --dry-run --error
bin/${{ env.BINARY_NAME }} ghactions --dry-run --error

0 comments on commit cf2968c

Please sign in to comment.