Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

lvjing2 pushed arklet code #24

lvjing2 pushed arklet code

lvjing2 pushed arklet code #24

name: Arklet Unit Test
run-name: ${{ github.actor }} pushed arklet code
on:
push:
branches:
- master
paths:
- 'arklet/**'
pull_request:
branches:
- master
paths:
- 'arklet/**'
# enable manually running the workflow
workflow_dispatch:
env:
WORK_DIR: arklet
defaults:
run:
working-directory: arklet
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: adopt
java-version: 8
- name: Setup Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.4
- name: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Test
run: mvn test
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Test
run: mvn test