forked from lycheeverse/lychee-action
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (56 loc) · 1.34 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
on:
- repository_dispatch
- workflow_dispatch
- push
- pull_request
jobs:
lychee-action:
runs-on: ubuntu-latest
continue-on-error: true
name: Test the lychee link checker action
steps:
# To use this repository's private action,
# we must check out the repository
- name: Checkout
uses: actions/checkout@v3
- name: test defaults
uses: ./
with:
fail: true
- name: test explicit lychee version
uses: ./
with:
lycheeVersion: 0.9.0
- name: test globs
uses: ./
with:
args: >-
--exclude-mail
--verbose
--no-progress
'./**/*.md'
'./**/*.html'
fail: true
- name: test workflow inputs
uses: ./
with:
args: -v fixtures/TEST.md
format: json
output: /tmp/foo.json
fail: true
- name: directory
uses: ./
with:
args: --exclude-mail .
fail: true
- name: test format override
uses: ./
with:
args: --format markdown -v fixtures/TEST.md
format: doesnotexist # gets ignored if format set in args
output: /tmp/foo.txt
fail: true
- name: test debug
uses: ./
with:
debug: true