mirror of
https://github.com/andreacomo/maven-gav-extractor.git
synced 2025-06-03 09:17:56 +08:00
Test workflow
This commit is contained in:
parent
d6d9c6f7b1
commit
05ba22be30
9
.github/test-resources/pom.xml
vendored
Normal file
9
.github/test-resources/pom.xml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.codingjam</groupId>
|
||||
<artifactId>github-action-poc</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
|
||||
</project>
|
21
.github/workflows/test.yml
vendored
Normal file
21
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Should extract GAV
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
- id: extract
|
||||
uses: ./
|
||||
with:
|
||||
pom-location: ${{ github.workspace }}/.github/test-resources/pom.xml
|
||||
- run: |
|
||||
echo "GroupId: ${{ steps.extract.outputs.group-id }}"
|
||||
echo "ArtifactId: ${{ steps.extract.outputs.artifact-id }}"
|
||||
echo "Version: ${{ steps.extract.outputs.version }}"
|
||||
shell: bash
|
Loading…
x
Reference in New Issue
Block a user