-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.25 KB
/
Copy pathsetup-htmlq.yml
File metadata and controls
54 lines (43 loc) · 1.25 KB
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
name: setup-htmlq
on: [push, pull_request]
jobs:
setup-htmlq:
runs-on: ubuntu-latest
steps:
- name: Setup htmlq
uses: remarkablemark/setup-htmlq@v3
- name: Print version
run: htmlq --version
- name: Print help
run: htmlq --help
- name: Find all paragraphs
run: curl --silent example.com | htmlq p
- name: Get the text content of heading
run: curl --silent example.com | htmlq --text h1
- name: Find all links
run: curl --silent example.com | htmlq --attribute href a
setup-htmlq-version:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# 0.2.0 is not supported
version: [0.3.0, 0.4.0]
runs-on: ${{ matrix.os }}
steps:
- name: Setup htmlq
uses: remarkablemark/setup-htmlq@v3
with:
htmlq-version: ${{ matrix.version }}
- name: Print version
run: htmlq --version
setup-htmlq-cli-name:
runs-on: ubuntu-latest
steps:
- name: Setup htmlq
uses: remarkablemark/setup-htmlq@v3
with:
cli-name: htmlq-cli
- name: Print version
run: htmlq-cli --version
- name: Locate executable
run: command -v htmlq-cli