-
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.
Allow setting
changes-file
to an empty string
If it's set to an empty string, the action will not look for a changelog.
- Loading branch information
Showing
4 changed files
with
57 additions
and
2 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,46 @@ | ||
name: Test working-directory Parameter | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Test no changes file | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Copy test project to root | ||
shell: bash | ||
run: | | ||
cp -a test-project/* . | ||
rm -fr test-project | ||
- name: Build binary | ||
uses: houseabsolute/actions-rust-cross@v0 | ||
with: | ||
command: build | ||
args: "--release" | ||
target: x86_64-unknown-linux-musl | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Release | ||
id: release | ||
uses: ./ | ||
with: | ||
executable-name: test-project | ||
target: x86_64-unknown-linux-musl | ||
changes-file: "" | ||
# We don't want to actually do a release when running tests. | ||
release-tag-prefix: "do-not-release" | ||
- name: Install psutils on Windows | ||
run: choco install --ignore-checksums psutils | ||
if: runner.os == 'Windows' | ||
- name: Check release artifacts | ||
shell: bash | ||
run: | | ||
./tests/check-release.pl \ | ||
--artifact-id "${{ steps.release.outputs.artifact-id }}" \ | ||
--executable-name test-project \ | ||
--github-token "${{ github.token }}" \ | ||
--repo houseabsolute/actions-rust-release \ | ||
--target "x86_64-unknown-linux-musl" |
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