chore(deps): update dependency io.gatling:gatling-maven-plugin to v4.3.3 #500
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: Master Branch CI | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- "moviebuffs-data-importer/**" | |
- "moviebuffs-gatling-tests/**" | |
- "moviebuffs-service/**" | |
- "moviebuffs-tools/**" | |
jobs: | |
test: | |
name: Unit & Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.11.0 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
cache: 'maven' | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v3.3.1 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Build with Maven | |
run: ./mvnw -B clean install -Pfull | |
- name: SonarCloud Scan | |
run: ./mvnw -B sonar:sonar -Psonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
working-directory: ./moviebuffs-service | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
docker: | |
name: Publish - Docker Hub | |
runs-on: ubuntu-latest | |
needs: [test] | |
env: | |
REPO: ${{ secrets.DOCKER_REPO }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.11.0 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
cache: 'maven' | |
- name: Package with Maven | |
run: ./mvnw -B clean install -DskipTests --file pom.xml | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: dockertmt/moviebuffs | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASS }} | |
workdir: ./moviebuffs-service | |
default_branch: master | |
tags: "latest" | |
buildoptions: "--compress --force-rm" |