Skip to content

e2eテストを追加する #7

e2eテストを追加する

e2eテストを追加する #7

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- 'src/**'
- 'test/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Start wp-env local server
run: nohup npm start &
- name: Wait for local server to start
run: |
while ! nc -z localhost 8889; do
sleep 1
done
- name: Run tests
run: npm test