Skip to content

chore: add ci workflow for tests #1

chore: add ci workflow for tests

chore: add ci workflow for tests #1

Workflow file for this run

name: test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
MVN: mvn --show-version --batch-mode
steps:
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- uses: actions/checkout@v4
- name: cache ~/.m2
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: run compile
run: $MVN clean compile
- name: run test
run: $MVN test -pl '!:interweb-server'