Skip to content

Commit

Permalink
build/ci: simplify strong_ci.yaml 🌱
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Feb 8, 2024
1 parent fdf4ac6 commit f8a5a28
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/strong_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,17 @@ jobs:
with:
submodules: recursive

- name: Setup Java 8
uses: actions/setup-java@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 8
# https://github.com/actions/setup-java?tab=readme-ov-file#install-multiple-jdks
java-version: |
8
11
17
21
distribution: zulu
# only first java setup need enable cache
cache: maven
- name: Setup Java 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: microsoft
- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: microsoft
- name: Setup Java 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: zulu

- name: Run integration test
run: scripts/integration_test.sh
Expand All @@ -45,7 +34,12 @@ jobs:
run: rm -rf $HOME/.m2/repository/io/foldright/study*

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# https://remarkablemark.org/blog/2017/10/12/check-git-dirty/
- name: Check git dirty
run: |
git status --short
[ -z "$(git status --short)" ]

0 comments on commit f8a5a28

Please sign in to comment.