feat: enable dependabot #584
Workflow file for this run
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: Test Code (Style, Tests) | |
on: | |
push: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
jobs: | |
OpenAPI-Definitions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/actions/gradle-setup | |
- name: Generate OpenAPI definition from code | |
run: ./gradlew resolve | |
- name: Check OpenAPI definition match code | |
run: git diff --exit-code | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/actions/gradle-setup | |
- name: 'Build system tests launcher' | |
run: ./gradlew :system-tests:launcher:shadowJar | |
- name: 'Upgrade docker-compose (for --wait option)' | |
run: | | |
sudo curl -L https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
- name: 'Run application in docker-compose' | |
run: docker-compose -f system-tests/tests/docker-compose.yml up --build --wait | |
timeout-minutes: 10 | |
- name: 'Unit and system tests' | |
run: ./gradlew test | |
timeout-minutes: 10 | |
env: | |
INTEGRATION_TEST: true | |
- name: 'Publish Test Results' | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: always() | |
with: | |
files: "**/test-results/**/*.xml" | |
- name: 'docker-compose logs' | |
run: docker-compose -f system-tests/tests/docker-compose.yml logs | |
if: always() | |
Checkstyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# run Checkstyle explicitly (as opposed to within gradle) due to better reporting capabilities | |
- name: Run Checkstyle | |
if: github.event_name == 'pull_request' | |
uses: nikitasavinov/[email protected] | |
with: | |
checkstyle_config: resources/checkstyle-config.xml | |
level: error | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
tool_name: 'checkstyle' | |
checkstyle_version: '9.0' | |
reporter: 'github-pr-check' | |
# Include only violations on added or modified files | |
filter_mode: 'file' |