Skip to content

feat: new feature test ci cd #18

feat: new feature test ci cd

feat: new feature test ci cd #18

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "main" ]
jobs:
conventional-commits:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webiny/action-conventional-commits@v1.3.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional, for private repositories.
allowed-commit-types: "feat,fix,BREAKING CHANGE,docs,ci,chore,refactor,test,perf,style" # Optional, set if you want a subset of commit types to be allowed.
build:
needs: conventional-commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file app/pom.xml
test:
needs: conventional-commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Test with Maven
run: mvn test --file app/pom.xml