Merge pull request #64 from ProPill/integration-test-hard #417
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Build | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- 'master' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Check code style | |
uses: axel-op/googlejavaformat-action@v3 | |
with: | |
args: "--replace" | |
skip-commit: true | |
files-excluded: "CartDto.java|CartToItemDto.java|ItemDto.java|TypeDto.java|OrderDto.java|OrderToItemDto.java|PharmacyDto.java|PharmacyToItemDto.java|RoleDto.java|SpecialityDto.java|UserAccountDto.java" | |
- name: Print diffs | |
run: git --no-pager diff --exit-code | |
build: | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '19' | |
distribution: 'temurin' | |
- name: Build with Maven | |
run: mvn clean package -DskipTests | |
# test: | |
# runs-on: ubuntu-latest | |
# needs: build | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# | |
# - name: Set up JDK | |
# uses: actions/setup-java@v3 | |
# with: | |
# java-version: '19' | |
# distribution: 'temurin' | |
# | |
# - name: Test with Maven | |
# run: mvn test | |
# | |
# - name: Test Coverage | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} |