Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 27, 2023
1 parent 4f96796 commit a02fa2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/spec-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,25 @@ jobs:
tools: composer:v2
coverage: none

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '2.7'

- name: Install PHP dependencies
- name: Install dependencies
run: |
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install autobahntestsuite
- name: Pull Autobahn Docker image
run: docker pull crossbario/autobahn-testsuite

- name: Start WebSocket server
run: php echo.php &

- name: Run specification tests
run: wstest -m fuzzingclient -s client-spec.json --debug
run: |
docker run --rm \
-v $PWD:/mnt/autobahn \
-v $PWD/reports:/mnt/autobahn/reports \
--add-host host.docker.internal:host-gateway \
crossbario/autobahn-testsuite \
wstest -m fuzzingclient -s /mnt/autobahn/client-spec.json
- name: Set workflow status based on Autobahn exit status
run: exit $?
2 changes: 1 addition & 1 deletion client-spec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"options": { "failByDrop": false },
"outdir": "/mnt/autobahn/reports",
"servers": [{ "agent": "Reverb", "url": "ws://0.0.0.0:8080", "options": { "version": 18 } }],
"servers": [{ "agent": "Reverb", "url": "ws://host.docker.internal:8080", "options": { "version": 18 } }],
"cases": ["*"],
"exclude-cases": [
"12.*",
Expand Down

0 comments on commit a02fa2b

Please sign in to comment.