-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update action.yml * fixes ESLint warning * updates docs * updates package version, description and devDeps * adds GHA self-test * renders new distributable * documents tests workflow * linting * adds GHA Branding * Update action-self-test.yml * don't just test `main`, test the currently worked on branch * Update action-unit-test.yml
- Loading branch information
Showing
10 changed files
with
2,269 additions
and
970 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,48 @@ | ||
name: "GitHub Action: Self-Test" | ||
|
||
on: | ||
push: | ||
|
||
env: | ||
PRODUCT_VERSION: "0.18.0" | ||
|
||
jobs: | ||
setup-copywrite: | ||
name: Test `setup-copywrite` | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
|
||
- name: Setup `copywrite` (using local GitHub Action) | ||
uses: "./" | ||
id: setup | ||
with: | ||
version: v${{ env.PRODUCT_VERSION }} | ||
|
||
- name: Print `$PATH` for `copywrite` | ||
run: which copywrite | ||
|
||
- name: Print `copywrite` version | ||
run: copywrite --version | ||
|
||
- name: Validate `copywrite` version is accurate | ||
run: "copywrite --version | grep --silent 'copywrite version ${{ env.PRODUCT_VERSION }}'" | ||
|
||
- name: Setup `copywrite` with an invalid version (using local GitHub Action) | ||
uses: "./" | ||
id: invalid_version | ||
with: | ||
version: "invalid_version" | ||
continue-on-error: true | ||
|
||
- name: Validate invalid version failed | ||
if: steps.invalid_version.outcome == 'success' | ||
run: echo "Installing an invalid version expected to fail but did not" && exit 1 | ||
|
||
- name: Setup `copywrite` with `latest` version (using local GitHub Action) | ||
uses: "./" | ||
id: latest_version | ||
|
||
- name: Print `copywrite` version | ||
run: copywrite --version |
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,18 @@ | ||
name: "GitHub Action: Unit Test" | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
name: Test the Action by running the test suite | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
|
||
- name: Install dependencies | ||
run: npm clean-install | ||
|
||
- name: Run test suite | ||
run: npm test |
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
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.