基本的なコンポーネント群を追加 #14
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: CI for sample | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "sample/**" | |
- ".github/workflows/sample.yml" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "sample/**" | |
- ".github/workflows/sample.yml" | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: sample | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install yarn | |
run: npm install -g yarn | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
cache-dependency-path: "sample/yarn.lock" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npm run e2e | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |