diff --git a/.github/workflows/quarkus.yml b/.github/workflows/ci-native.yml similarity index 70% rename from .github/workflows/quarkus.yml rename to .github/workflows/ci-native.yml index d40bfdb..fc37f8c 100644 --- a/.github/workflows/quarkus.yml +++ b/.github/workflows/ci-native.yml @@ -1,13 +1,14 @@ -name: quarkus-ci +name: ci-native on: push: - paths-ignore: - - "README.md" - - ".dockerignore" - - ".gitignore" - - "*.sh" - - "*.png" + paths: + - ".github/workflows/ci-native.yml" + - "src/**" + - "config/**" + - "liquibase/**" + - "docker-compose.yaml" + - "pom.xml" schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) @@ -20,52 +21,11 @@ on: # * * * * * - cron: "15 1 * * *" -# permissions: -# packages: none # Overriden by package 'Actions access'. - concurrency: - group: quarkus-ci + group: ci-native cancel-in-progress: false jobs: - build-jvm: - runs-on: ubuntu-latest - env: - MVN: mvn --show-version --batch-mode - steps: - - name: JDK 11 - uses: actions/setup-java@v2 - with: - java-version: "11" - distribution: "adopt" - - name: login registry.redhat.io - uses: docker/login-action@v1.8.0 - with: - registry: registry.redhat.io - username: ${{ secrets.REDHAT_USR }} - password: ${{ secrets.REDHAT_PWD }} - logout: true - - name: login ghcr.io - uses: docker/login-action@v1.8.0 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - logout: true - - name: checkout - uses: actions/checkout@v2 - - name: cache ~/.m2 - uses: actions/cache@v2 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - name: mvn clean compile - run: $MVN clean compile - - name: mvn test - run: $MVN test - - name: mvn package -DskipTests -Dquarkus.container-image.push=true - run: $MVN package -Dquarkus.container-image.push=true -DskipTests test-native: runs-on: ubuntu-latest env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e9fea7f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,66 @@ +name: ci + +on: + push: + paths: + - ".github/workflows/ci.yml" + - "src/**" + - "pom.xml" + schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * + - cron: "15 1 * * *" + +# permissions: +# packages: none # Overriden by package 'Actions access'. + +concurrency: + group: ci + cancel-in-progress: false + +jobs: + build-jvm: + runs-on: ubuntu-latest + env: + MVN: mvn --show-version --batch-mode + steps: + - name: JDK 11 + uses: actions/setup-java@v2 + with: + java-version: "11" + distribution: "adopt" + - name: login registry.redhat.io + uses: docker/login-action@v1.8.0 + with: + registry: registry.redhat.io + username: ${{ secrets.REDHAT_USR }} + password: ${{ secrets.REDHAT_PWD }} + logout: true + - name: login ghcr.io + uses: docker/login-action@v1.8.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + logout: true + - name: checkout + uses: actions/checkout@v2 + - name: cache ~/.m2 + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: mvn clean compile + run: $MVN clean compile + - name: mvn test + run: $MVN test + - name: mvn package -DskipTests -Dquarkus.container-image.push=true + run: $MVN package -Dquarkus.container-image.push=true -DskipTests diff --git a/.github/workflows/scanning.yml b/.github/workflows/scanning.yml index a4bd193..aadd6da 100644 --- a/.github/workflows/scanning.yml +++ b/.github/workflows/scanning.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [master] paths: - - 'src/**' + - "src/**" schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23)