Skip to content

Commit

Permalink
Add Codecov token
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten committed Dec 9, 2023
1 parent c9ed84c commit 99b5ae6
Showing 1 changed file with 1 addition and 65 deletions.
66 changes: 1 addition & 65 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 99b5ae6

Please sign in to comment.