Skip to content

Commit

Permalink
#68 fixed github actions to build project
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed Feb 12, 2024
1 parent f86f0e1 commit e28c02a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '21'
distribution: 'temurin'

# Initializes the CodeQL tools for scanning.
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/feature-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 18
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '21'
distribution: 'temurin'
cache: maven

- name: Build API
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean package --file ./api/pom.xml -DskipTests
- name: Build project
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean package --file ./pom.xml
env:
GH_PACKAGES_USER_NAME: ${{ secrets.GH_PACKAGES_USER_NAME }}
GH_PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_PACKAGES_ACCESS_TOKEN }}
- name: Test API
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean verify --file ./api/pom.xml
- name: Test project
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean verify --file ./pom.xml
env:
GH_PACKAGES_USER_NAME: ${{ secrets.GH_PACKAGES_USER_NAME }}
GH_PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_PACKAGES_ACCESS_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/feature-crawler.yaml

This file was deleted.

28 changes: 6 additions & 22 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ jobs:
ref: badges
path: badges

- name: Set up JDK 18
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '21'
distribution: 'temurin'
cache: maven

- name: Build API
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean package --file ./api/pom.xml -DskipTests
- name: Build project
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean package --file ./pom.xml
env:
GH_PACKAGES_USER_NAME: ${{ secrets.GH_PACKAGES_USER_NAME }}
GH_PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_PACKAGES_ACCESS_TOKEN }}
- name: Test API
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean verify --file ./api/pom.xml
- name: Test project
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode --update-snapshots clean verify --file ./pom.xml
env:
GH_PACKAGES_USER_NAME: ${{ secrets.GH_PACKAGES_USER_NAME }}
GH_PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_PACKAGES_ACCESS_TOKEN }}
Expand All @@ -52,19 +52,3 @@ jobs:
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branches = ${{ steps.jacoco.outputs.branches }}"
- name: Commit and push badges
if: ${{ github.event_name != 'pull_request' }}
run: |
cd badges
if [[ `git status --porcelain *.svg` ]]; then
git config --global user.name 'github-actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add *.svg
git commit -m "Autogenerated JaCoCo coverage badge" *.svg
git push
fi
- name: Upload Jacoco coverage report
uses: actions/upload-artifact@v3
with:
name: jacoco-report
path: api/target/site/jacoco/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Log file
*.log
*.log.*

# BlueJ files
*.ctxt
Expand Down

0 comments on commit e28c02a

Please sign in to comment.