Skip to content

Workflow dispatch Process Order #1

Workflow dispatch Process Order

Workflow dispatch Process Order #1

# This is a basic workflow to help you get started with Actions
name: Workflow dispatch Process Order
# Controls when the workflow will run
on:
workflow_dispatch:
inputs:
ordernumber:
description: 'Enter Order number to process'
required: true
default: ''
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Step 1 - Checkout master branch from Github
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Install Maven
run: mvn -B package --file pom.xml
- name: List the current directory
run: ls -a
# Runs a set of commands using the runners shell
- name: What is in target directory?
run: |
cd target
ls -a
- name: User Actor Email
run: 'echo "User Actor: ${{ github.actor }}"'
- name: Build with Maven
env:
GITHUB_RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
TEST_ORDERNUM: ${{ github.event.inputs.ordernumber }}
#run: mvn test -Dtest=TestRunner
run: >
mvn test -Dtest=CucumberTest
--define cucumber.filter.tags=@process-order