-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
65 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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
- name: Upload code coverage results | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
verbose: true | ||
|
||
|
@@ -193,68 +194,3 @@ jobs: | |
version: latest | ||
args: --all-targets --all-features | ||
|
||
version_bump: | ||
name: Ensure (MAJOR) tag is used when making an API breaking change | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Get latest existing tag | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
id: get-latest-tag | ||
|
||
- name: Set new version | ||
uses: paulhatch/[email protected] | ||
id: set-version | ||
with: | ||
tag_prefix: "v" | ||
version_format: "${major}.${minor}.${patch}" | ||
major_pattern: "(MAJOR)" | ||
minor_pattern: "(MINOR)" | ||
|
||
- name: Generate changelog since last tag | ||
run: | | ||
{ | ||
echo 'changelog<<EOF' | ||
git log --format="* %s" ${{ steps.get-latest-tag.outputs.tag }}..HEAD | { grep -v "(IGNORE)" || :; } | ||
echo EOF | ||
} >> "$GITHUB_OUTPUT" | ||
- name: "Bump crate version (NOTE: Not pushed back to repo!)" | ||
continue-on-error: true # If no change to crate version, ignore git commit error | ||
run: | | ||
sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" Cargo.toml | ||
git config user.email "[email protected]" | ||
git config --global user.name "PR validation bot" | ||
git add . | ||
git commit -m "DO NOT PUSH BACK TO PR: Bump crate version" | ||
env: | ||
VERSION: ${{ steps.set-version.outputs.version }} | ||
|
||
- name: If this step fails, change title of the PR to include (MAJOR) tag | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
package: xmp_toolkit | ||
|
||
read_xmp_example: | ||
name: ReadXMP example | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache Rust dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run example | ||
run: cargo run --example read_xmp src/tests/fixtures/Purple\ Square.psd |