Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jcbhmr/get-changed-cargo-packages

📦 Get a list of the cargo packages that changed on this push or pull_request event
https://github.com/jcbhmr/get-changed-cargo-packages

action actions cargo cargo-workspaces changed-files github-actions

Last synced: about 1 month ago
JSON representation

📦 Get a list of the cargo packages that changed on this push or pull_request event

Awesome Lists containing this project

README

        

# Get changed Cargo packages

## Usage

```yml
on: push
jobs:
get-changed-cargo-packages:
runs-on: ubuntu-latest
outputs:
changed-cargo-packages: ${{ steps.get-changed-cargo-packages.outputs.changed-cargo-packages }}
steps:
- uses: actions/checkout@v4
- id: get-changed-cargo-packages
uses: jcbhmr/get-changed-cargo-packages@v1
cargo-test:
needs: get-changed-cargo-packages
strategy:
matrix:
package: ${{ fromJSON(needs.get-changed-packages.outputs.changed-packages) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo test --package "$PACKAGE" --all-features
env:
PACKAGE: ${{ matrix.package }}
```