Added asserts

This commit is contained in:
acomo 2021-02-20 22:28:40 +01:00
parent 32ed04b6d3
commit d16a6f89e8

View File

@ -1,3 +1,5 @@
name: Action Test
on: [push] on: [push]
jobs: jobs:
@ -10,13 +12,16 @@ jobs:
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: 11 java-version: 11
- id: extract - name: Extract GAV
id: extract
uses: ./ uses: ./
with: with:
pom-location: ${{ github.workspace }}/.github/test-resources/pom.xml pom-location: ${{ github.workspace }}/.github/test-resources/pom.xml
- name: Echo GAV - name: Assert extracted GAV
run: | run: |
echo "GroupId: ${{ steps.extract.outputs.group-id }}" wget https://raw.github.com/lehmannro/assert.sh/v1.1/assert.sh
echo "ArtifactId: ${{ steps.extract.outputs.artifact-id }}" . assert.sh
echo "Version: ${{ steps.extract.outputs.version }}" assert echo "${{ steps.extract.outputs.group-id }}" "com.codingjam"
assert echo "${{ steps.extract.outputs.artifact-id }}" "github-action-poc"
assert echo "${{ steps.extract.outputs.version }}" "1.0.0-SNAPSHOT"
shell: bash shell: bash