Specify cache path #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test get-html action | |
on: | |
push: | |
branches: ["*"] | |
paths: | |
- get-html/** | |
- .github/workflows/get-html.yml | |
pull_request: | |
branches: ["*"] | |
paths: | |
- get-html/** | |
- .github/workflows/get-html.yml | |
jobs: | |
tests-get-html: | |
runs-on: ubuntu-latest | |
name: Test get-html | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- shell: bash | |
run: | | |
ls -la | |
- uses: ./get-html | |
name: test some URL | |
with: | |
url: https://opentermsarchive.org | |
output: result.html | |
- shell: bash | |
run: | | |
cat result.html | grep Accessibilité | |
- uses: ./get-html | |
name: test user-agent | |
with: | |
url: https://httpbin.org/user-agent | |
output: user-agent.html | |
- shell: bash | |
run: | | |
cat user-agent.html | grep dashlord |