fix docker and CI setting #58
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: Cypress Tests | |
on: | |
push: | |
branches: | |
- '**' | |
- '!master' | |
jobs: | |
cypress-run: | |
services: | |
testbed: | |
image: naoso5/openpbs | |
ports: | |
- 4000:22 | |
env: | |
WHEEL_USE_HTTP: 1 | |
TZ: JST-9 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CYPRESS_WHEEL_TEST_REMOTEHOST: ${{ secrets.WHEEL_TEST_REMOTEHOST }} | |
CYPRESS_WHEEL_TEST_REMOTE_PASSWORD: ${{ secrets.WHEEL_TEST_REMOTE_PASSWORD }} | |
CYPRESS_WHEEL_TEST_HOSTNAME: ${{ secrets.WHEEL_TEST_HOSTNAME }} | |
CYPRESS_WHEEL_TEST_PORT: ${{ secrets.WHEEL_TEST_PORT }} | |
CYPRESS_WHEEL_TEST_USER: ${{ secrets.WHEEL_TEST_USER }} | |
CYPRESS_WHEEL_PATH: '/home/runner' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- run: mkdir -p ~/.wheel | |
- run: > | |
echo '[{ | |
"name": "${{ secrets.WHEEL_TEST_REMOTEHOST }}", | |
"host": "${{ secrets.WHEEL_TEST_HOSTNAME }}", | |
"path": "/home/${{ secrets.WHEEL_TEST_USER }}", | |
"keyFile": null, | |
"username": "${{ secrets.WHEEL_TEST_USER }}", | |
"numJob": 5, | |
"port": ${{ secrets.WHEEL_TEST_PORT }}, | |
"id": "dummy-id", | |
"jobScheduler": "PBSPro", | |
"queue": "workq", | |
"renewInterval": 0, | |
"renewDelay": 0, | |
"statusCheckInterval": 5, | |
"maxStatusCheckError": 10, | |
"readyTimeout": 5000 | |
}]' > ~/.wheel/remotehost.json | |
- run: cat ~/.wheel/remotehost.json | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: npm | |
- run: npm install | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: test | |
browser: chrome | |
install: false | |
build: npm run build | |
start: npm start | |
wait-on: "http://localhost:8089" | |
wait-on-timeout: 300 |