diff options
author | Lukas Larsson <lukas@erlang.org> | 2022-01-24 17:40:54 +0100 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2022-01-25 09:30:44 +0100 |
commit | 99d42020debcab400559b431cdd788ea4c33ccc8 (patch) | |
tree | ea8b6dea5915fb378934aa9b52cbcc830999dead | |
parent | f116638a99a4d2b10c80c8af833ee372f35b42af (diff) | |
download | erlang-99d42020debcab400559b431cdd788ea4c33ccc8.tar.gz |
gh: Do not run any tests of no applications were changed
This can happen when only makefiles are changed or changes
are merged from maint to master that already have been fixed
in master and thus are empty merges.
-rw-r--r-- | .github/workflows/main.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4a85beac45..fdd71b13f7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -411,6 +411,7 @@ jobs: name: Test Erlang/OTP runs-on: ubuntu-latest needs: [pack, changed-apps] + if: needs.changed-apps.outputs.changes != '[]' strategy: matrix: # type: ${{ fromJson(needs.changed-apps.outputs.all) }} @@ -472,8 +473,9 @@ jobs: uses: actions/download-artifact@v2 - name: Merge test results run: | + shopt -s nullglob mkdir -p make_test_dir - for file in $(ls *_test_results/*.tar.gz); do + for file in *_test_results/*.tar.gz; do tar xzf $file done docker load < otp_docker/otp_docker.tar |