generated from actions/javascript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 44
35 lines (33 loc) · 918 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
31
32
33
34
35
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 }}" != ""