Test workflow

This commit is contained in:
acomo 2021-02-20 22:06:37 +01:00
parent d6d9c6f7b1
commit 05ba22be30
2 changed files with 30 additions and 0 deletions

9
.github/test-resources/pom.xml vendored Normal file
View 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
View 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