-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GitHub Action Workflows (#1487)
* Unify build and test workflows * Fix matrix.os variable in build workflow * Add github release drafter template * Fix runs_on input and add test-coverage script * Fix hb_service installation; override install command for build_and_test job * Disable coverage reporting for now and install dev dependency in build step * Upgrade jest to run code coverage * Supply install_cmd on lint job * Include release workflow in GitHub Actions * Remove needs requirements for lint job * modified: .github/workflows/build.yml --------- Co-authored-by: Donavan Becker <donavan.becker@icloud.com>
- Loading branch information
1 parent
520a243
commit 1429765
Showing
12 changed files
with
1,286 additions
and
1,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The GitHub release configuration file: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes | ||
|
||
changelog: | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- 'breaking change' | ||
- title: Featured Changes ✨ | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
- title: Other Changes | ||
labels: | ||
- "chore" | ||
- "housekeeping" | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Attach Artifacts | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Attach Artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
# Sanity check to ensure that release tags don't start with a 'v' version prefix but adhere to the X.Y.Z format | ||
- name: Check for Tag name Format | ||
if: startWith(${{github.event.release.tag_name}}, 'v') | ||
run: | | ||
echo "Tag name must not start with 'v' Prefix" | ||
exit 1 | ||
- name: Install package | ||
run: | | ||
export npm_config_prefix=$(pwd)/package | ||
npm install -g homebridge-config-ui-x@${{ github.event.release.tag_name }} | ||
- name: Create Bundle | ||
run: | | ||
tar -C $(pwd)/package --owner=0 --group=0 --format=posix -czvf homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz . | ||
shasum -a 256 homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz > SHASUMS256.txt | ||
- name: Attach Bundle | ||
uses: AButler/upload-release-assets@v2.0 | ||
with: | ||
files: 'homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz;SHASUMS256.txt' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ github.event.release.tag_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: PR Labeler | ||
|
||
on: | ||
pull_request: # required for auto labeler | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
uses: homebridge/.github/.github/workflows/pr-labeler.yml@main | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tag-version-prefix="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.