Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add redirect test workflow / github action #3786

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Test specifications are currently extracted from .htaccess file comments, e. g.
##TESTv1 '/mypath --header "Accept: text/html"' "https://my-target-domain.com/test.html"
```

## Run the test as Github Action
1. Navigate to `https://github.com/<your fork>/w3id.org/actions/workflows/redirect_tests.yml` (example see [here](https://github.com/OpenSemanticWorld/w3id.org/actions/workflows/redirect_tests.yml))
1. Select 'Run workflow'
1. Keep the master branch or select your custom branch
1. Change the subpath to your subpath, e.g. `/mypath`
simontaurus marked this conversation as resolved.
Show resolved Hide resolved
1. Click 'Run workflow'
1. After completion, click on the run entry to view details (example see [here](https://github.com/OpenSemanticWorld/w3id.org/actions/runs/7224639650/job/19686349546))

## Run the test locally
Note: replace `/*` with your own trusted subpath, e.g. `/mypath`, otherwise all subpaths are tested which may create security issues
```bash
Expand Down