【发布时间】:2021-07-21 17:46:44
【问题描述】:
我的 maven 存储库位于 ./java 目录中。我想在./java 目录中运行 maven 测试,但出现以下错误:
The goal you specified requires a project to execute but there is no POM in this directory (/github/workspace). Please verify you invoked Maven from the correct directory. -> [Help 1]
这是我的工作流程:
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
defaults:
run:
working-directory: java
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run maven test
uses: xlui/action-maven-cli@master
with:
lifecycle: 'clean package test'
working-directory好像没用,怎么解决?
【问题讨论】:
-
当你遇到目录错误时,首先尝试actions/checkout@v2
标签: maven github github-actions