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: Calc first java cs_project | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
#- name: Formating | |
# uses: axel-op/googlejavaformat-action@v3 | |
# with: | |
# args: "--skip-sorting-imports --replace" | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
#- name: Scan security | |
#- uses: github/codeql-action/init@v3 | |
#with: | |
#config-file: ./.github/codeql/codeql-config.yml | |
#queries: +security-and-quality,octo-org/python-qlpack/show_ifs.ql@main | |
#packs: +scope/pack1,scope/[email protected],scope/[email protected]:path/to/queries | |
- name: Build with maven | |
run: mvn -B package --file pom.xml | |
- name: upload resulting file | |
uses: actions/upload-artifact@v4 | |
with: | |
name: my-artifact | |
path: /home/runner/work/javaworld/javaworld/target/External-IP-Checker-1.0.2-jar-with-dependencies.jar | |
#- name: Super-linter | |
# uses: super-linter/[email protected] # x-release-please-version | |
# env: | |
# To report GitHub Actions status checks | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |