Add testing/automated-testing branch to branches section #1
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- testing/automated-testing | |
pull_request: | |
branches: | |
- master | |
- testing/automated-testing | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 # clone the repository's code into the runner | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 # Install and configure a specific version of the JDK. | |
with: | |
java-version: '21' | |
- name: Cache Maven packages | |
uses: actions/cache@v2 # This uses the cache action to cache dependencies to speed up the workflow. | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven | |
- name: Build with Maven | |
run: mvn clean install | |
- name: Run tests | |
run: mvn test |