feat: inform users of breaking changes on first run #114
Workflow file for this run
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
name: Test Configuration File Creation | |
on: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
TestConfig: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
CONFIG_PATH=~/.config/topgrade.toml; | |
if [ -f "$CONFIG_PATH" ]; then rm $CONFIG_PATH; fi | |
cargo build; | |
# Yes for confirming the breaking changes, if this is a major release | |
yes | ./target/debug/topgrade --dry-run --only system; | |
stat $CONFIG_PATH; |