Merge pull request #81 from mrks115/patch-1 #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'units-test' | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- 'releases/*' | |
jobs: | |
# unit tests | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: npm ci | |
- run: npm test | |
# test action works running from the graph | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run the changelog reader | |
id: changelog_reader | |
uses: ./ | |
- name: Display output | |
run: | | |
echo "Version: ${{ steps.changelog_reader.outputs.version }}" | |
echo "Date: ${{ steps.changelog_reader.outputs.date }}" | |
echo "Status: ${{ steps.changelog_reader.outputs.status }}" | |
echo "Changes: ${{ steps.changelog_reader.outputs.changes }}" | |
- name: Check output | |
run: | | |
test "Changes: ${{ steps.changelog_reader.outputs.changes }}" != "" |