-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (27 loc) · 982 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Should extract GAV
steps:
- uses: actions/checkout@v3
- name: Extract GAV
id: extract
uses: ./
with:
pom-location: ${{ github.workspace }}/.github/test-resources/pom.xml
- name: Assert extracted GAV
run: |
echo ${{ steps.extract.outputs.group-id }}
echo ${{ steps.extract.outputs.artifact-id }}
echo ${{ steps.extract.outputs.version }}
echo ${{ steps.extract.outputs.name }}
wget https://raw.github.com/lehmannro/assert.sh/v1.1/assert.sh
. assert.sh
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"
assert "echo ${{ steps.extract.outputs.name }}" "github-action-poc"
assert_end tests
shell: bash