diff --git a/.github/workflows/test.yaml b/.github/workflows/code-coverage.yml similarity index 87% rename from .github/workflows/test.yaml rename to .github/workflows/code-coverage.yml index f58e12ae..fbf0ed81 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/code-coverage.yml @@ -57,10 +57,3 @@ jobs: # token: ${{ secrets.CODECOV_TOKEN }} files: ./lcov.info fail_ci_if_error: true - - name: Test creation of config file - run: | - CONFIG_PATH=~/.config/topgrade.toml; - if [ -f "$CONFIG_PATH" ]; then rm $CONFIG_PATH; fi - cargo build; - ./target/debug/topgrade --dry-run --only system; - stat $CONFIG_PATH; diff --git a/.github/workflows/test-config-creation.yml b/.github/workflows/test-config-creation.yml new file mode 100644 index 00000000..58c7b8dd --- /dev/null +++ b/.github/workflows/test-config-creation.yml @@ -0,0 +1,21 @@ +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; + ./target/debug/topgrade --dry-run --only system; + stat $CONFIG_PATH;