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

lylingzhen pushed arklet code #4

lylingzhen pushed arklet code

lylingzhen pushed arklet code #4

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 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('{{env.WORK_DIR}}/pom.xml') }}
- name: Test
run: mvn test