sample.js -> sample-set.js #11
This file contains 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: tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Set up OS | |
run: | | |
sudo safaridriver --enable | |
- name: Clone fn | |
uses: actions/checkout@v3 | |
with: | |
repository: stephband/fn | |
path: fn/ | |
- name: Clone dom | |
uses: actions/checkout@v3 | |
with: | |
repository: stephband/dom | |
path: dom/ | |
- name: Clone midi | |
uses: actions/checkout@v3 | |
with: | |
repository: stephband/midi | |
path: midi/ | |
- name: Clone soundstage | |
uses: actions/checkout@v3 | |
with: | |
path: soundstage/ | |
- name: Install Selenium and launch server | |
run: | | |
cd soundstage/ | |
npm install selenium-webdriver | |
cd ../ | |
python -m SimpleHTTPServer 8000 & | |
- name: Test Chrome | |
run: | | |
cd soundstage/ | |
node .github/workflows/tests.js chrome http://127.0.0.1:8000/soundstage/test.html | |
- name: Test FireFox | |
run: | | |
cd soundstage/ | |
node .github/workflows/tests.js firefox http://127.0.0.1:8000/soundstage/test.html | |
- name: Test Safari | |
run: | | |
cd soundstage/ | |
node .github/workflows/tests.js safari http://127.0.0.1:8000/soundstage/test.html |