Merge pull request #349 from l3s-learnweb/dependabot/maven/io.sentry-… #79
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: | |
pull_request: | |
jobs: | |
styles: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run lint:scss --silent | |
- run: npm run lint:js --silent | |
java: | |
runs-on: ubuntu-latest | |
env: | |
MVN: mvn --batch-mode | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
server-id: github-l3s-learnweb | |
- name: Run Checkstyle check | |
run: $MVN checkstyle:check | |
- name: Run SpotBugs check | |
if: success() || failure() | |
run: $MVN compile spotbugs:check | |
- name: Run tests | |
if: success() || failure() | |
run: $MVN --show-version test |