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 eb5b96c commit ffc41fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/spec-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ jobs:
tools: composer:v2
coverage: none

- name: Install dependencies
- name: Set up Python
uses: actions/setup-python@v4

- name: Install PHP dependencies
run: |
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Pull Autobahn Docker image
run: docker pull crossbario/autobahn-testsuite
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install autobahntestsuite
- name: Start WebSocket server
run: php echo.php &
Expand All @@ -45,12 +50,7 @@ jobs:
run: sed -i "s/ws:\/\/HOST:8080/ws:\/\/$(ip route show default | awk '/default/ {print $3}'):8080/g" client-spec.json

- name: Run specification tests
run: |
docker run --rm \
-v $PWD:/mnt/autobahn \
-v $PWD/reports:/mnt/autobahn/reports \
crossbario/autobahn-testsuite \
wstest -m fuzzingclient -s /mnt/autobahn/client-spec.json
run: wstest -m fuzzingclient

- 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://HOST:8080", "options": { "version": 18 } }],
"servers": [{ "agent": "Reverb", "url": "ws://0.0.0.0:8080", "options": { "version": 18 } }],
"cases": ["*"],
"exclude-cases": [
"12.*",
Expand Down

0 comments on commit ffc41fa

Please sign in to comment.