From 53a86837888810d40578f3601f05c19bb7932980 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Sat, 15 Jul 2023 00:12:53 +0800 Subject: [PATCH] ci: separate code-coverage and test-config-creation (#488) --- .../{test.yaml => code-coverage.yml} | 7 ------- .github/workflows/test-config-creation.yml | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) rename .github/workflows/{test.yaml => code-coverage.yml} (87%) create mode 100644 .github/workflows/test-config-creation.yml 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;