diff --git a/.github/test-resources/pom.xml b/.github/test-resources/pom.xml new file mode 100644 index 0000000..119b7c6 --- /dev/null +++ b/.github/test-resources/pom.xml @@ -0,0 +1,9 @@ + + + 4.0.0 + + com.codingjam + github-action-poc + 1.0.0-SNAPSHOT + + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b6ed3ea --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file