Skip to content

ci: add Github action #1

ci: add Github action

ci: add Github action #1

Workflow file for this run

name: test
on:
push:
branches:
- main
env:
MVN: mvn --show-version --batch-mode --quiet
jobs:
styles:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run lint:scss --silent
- run: npm run lint:js --silent
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- run: $MVN checkstyle:check
- run: $MVN compile spotbugs:check
test:
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- run: $MVN test