Skip to content

NOJIRA update github actions dependencies #7802

NOJIRA update github actions dependencies

NOJIRA update github actions dependencies #7802

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Maven Build
on:
pull_request:
jobs:
maven-build:
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Search for bad unicode translations
run: |
find . -name \*.properties -exec grep '\\u[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][^0-9a-fA-F]' {} \; &> grep.txt
find . -name \*.properties -exec grep '\\u[0-9a-fA-F][0-9a-fA-F][^0-9a-fA-F][0-9a-fA-F]' {} \; &>> grep.txt
find . -name \*.properties -exec grep '\\u[0-9a-fA-F][^0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]' {} \; &>> grep.txt
find . -name \*.properties -exec grep '\\u[^0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]' {} \; &>> grep.txt
if [ -s grep.txt ]; then
exit 1
fi
- name: Build with Maven
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true -Dmaven.wagon.http.retryHandler.count=2 -Dmaven.wagon.http.pool=true
run: mvn --show-version --batch-mode -PskipBrokenTests install
- name: Find and test web components
run: |
for dir in webcomponents/tool/src/main/frontend/packages/*; do
if [[ "$dir" == *"sakai-course-dashboard"* ]]; then
echo "Skipping broken test $dir"
continue
elif [[ "$dir" == *"sakai-dialog-content"* ]]; then
echo "Skipping broken test $dir"
continue
fi
if [[ -f "$dir/package.json" ]]; then
if jq -e '.scripts.test' "$dir/package.json" > /dev/null; then
echo "Testing $dir"
(cd "$dir" && npm run test -s)
else
echo "No test script found in $dir/package.json"
fi
fi
done