Skip to content

Commit

Permalink
Merge pull request #2 from jaymeh/feature/build_pipeline
Browse files Browse the repository at this point in the history
feat: adds ability to automatically build and attach a new binary
  • Loading branch information
jaymeh authored Aug 31, 2022
2 parents d84e5b7 + 977f6ce commit d102123
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Get Release Notes
run: ./changelog-checker > ${{ github.workspace }}-CHANGELOG.txt

- name: Build Binary
run: php ./changelog-checker app:build ${{github.ref_name}}

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -28,3 +31,5 @@ jobs:
body_path: ${{ github.workspace }}-CHANGELOG.txt
generate_release_notes: false
token: ${{ secrets.MY_PAT }}
files:
builds/${{github.ref_name}}
2 changes: 2 additions & 0 deletions tests/Feature/GetRecentChangelogItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
use Illuminate\Support\Facades\Storage;

test('command outputs error if it cannot find a changelog file', function() {
Storage::delete('CHANGELOG.md');

$this->withoutExceptionHandling();
$this->artisan('changelog:get-recent')
->expectsOutput('Cannot locate CHANGELOG.md file within project')
Expand Down

0 comments on commit d102123

Please sign in to comment.