-
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (28 loc) · 1 KB
/
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test puppeteer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Test action
uses: ./
id: puppeteer-test
with:
files: test/test.js # The test generates a test.pdf file in the home directory the steps below are used to verify the contents of the pdf file.
- name: Copy test output
uses: tj-actions/docker-cp@v2
with:
container: ${{ steps.puppeteer-test.outputs.container-id }}
source: ${{ steps.puppeteer-test.outputs.home }}/test.pdf # <-- Replace this input if copied or Remove this step
destination: test.pdf # <-- Replace this input if copied or Remove this step
- name: Display contents of test.pdf # <-- Replace this file name if copied or Remove this step
run: cat test.pdf # <-- Replace this file name if copied or Remove this step