Skip to content

Commit 31a1c89

Browse files
committed
ci: migrate comparison of versions from TravisCI to GitHub Actions
Part of #1154
1 parent 7c54179 commit 31a1c89

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Comparison with Spring Boot dependencies
2+
3+
on:
4+
push:
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore
6+
branches:
7+
- master
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
9+
paths:
10+
- pom.xml
11+
- src/main/scripts/show-spring-boot-version-diff.sh
12+
- .github/workflows/dependencies-diff.yml
13+
14+
jobs:
15+
show-spring-boot-version-diff:
16+
name: Run show-spring-boot-version-diff.sh
17+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
18+
runs-on: ubuntu-20.04
19+
steps:
20+
- name: Clone source code
21+
uses: actions/[email protected] # https://github.com/actions/checkout
22+
with:
23+
# Whether to configure the token or SSH key with the local git config. Default: true
24+
persist-credentials: false
25+
- name: Compare versions
26+
run: ./src/main/scripts/show-spring-boot-version-diff.sh

.travis.yml

-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ after_failure:
5252
sleep 5;
5353
fi
5454

55-
after_success:
56-
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
57-
./src/main/scripts/show-spring-boot-version-diff.sh;
58-
fi
59-
6055
deploy:
6156
provider: script
6257
script: ./src/main/scripts/ci/deploy.sh

0 commit comments

Comments
 (0)