Skip to content

e2eテストを追加する #8

e2eテストを追加する

e2eテストを追加する #8

Workflow file for this run

name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
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 ci
- 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