fix: fix typo in maven.yml #4
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: Java CI with Maven | |
on: | |
push: | |
#branches: [ "develop" ] | |
pull_request: | |
#branches: [ "develop" ] | |
jobs: | |
Lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
# To report GitHub Actions status checks | |
statuses: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# super-linter needs the full git history to get the | |
# list of files that changed across commits | |
fetch-depth: 0 | |
- name: Super-linter | |
uses: super-linter/super-linter@v6.3.0 # x-release-please-version | |
env: | |
# To report GitHub Actions status checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
#Job for building the application". | |
build: | |
#The type of container the application will run in. | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed asa part of the job | |
steps: | |
- name: Step 1 - Checkout the main branches from Github | |
- uses: actions/checkout@v3 | |
# Configure the eclipse temurin JDK for the ubuntu runner. | |
# Caches dependency in maven pom file. Speeds up workflow. | |
- name: Step 2 - Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Step 3 - Build and test with Maven | |
run: mvn -B package --file pom.xml | |
# Job for testing the application | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Checkout the main branches from Github | |
uses: actions/checkout@v3 | |
- name: Step 2 - Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Step 3 - Run tests with Maven | |
run: mvn test | |