-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (36 loc) · 1.1 KB
/
main.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
36
37
38
39
40
41
42
43
name: test-deploy
# Run on each push to master
on:
push:
branches: [ master ]
jobs:
test_job:
runs-on: ubuntu-latest
name: Testing private usage
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: redoc-cli test
uses: ./ # Uses an action in the root directory
with:
args: 'bundle test/petstore.yml -o petstore.html'
- name: check result
run: |
ls -al
test -f petstore.html || (echo "Missing petstore.html from previous step." && exit 1)
test_job_2:
runs-on: ubuntu-latest
name: Testing public name
steps:
- name: Checkout
uses: actions/checkout@v2
# use the public name of the action
- name: redoc-cli test
uses: seeebiii/redoc-cli-github-action@v10
with:
args: 'bundle test/petstore.yml -o petstore.html'
- name: check result
run: |
ls -al
test -f petstore.html || (echo "Missing petstore.html from previous step." && exit 1)