docs/[id]/edit に変更する #338
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches-ignore: | |
- main | |
env: | |
NODE_VERSION: "22.14.0" | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: ./.github/actions/setup | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
lint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm run lint | |
test: | |
needs: setup | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install PostgreSQL Client | |
run: sudo apt update && sudo apt install -y postgresql-client | |
- run: npx playwright install --with-deps | |
- run: npx supabase start | |
- run: npx supabase db reset | |
- name: Generate .env.local for test environment | |
run: | | |
STATUS_OUTPUT=$(npx supabase status) | |
API_URL=$(echo "$STATUS_OUTPUT" | grep "API URL:" | awk '{print $3}') | |
ANON_KEY=$(echo "$STATUS_OUTPUT" | grep "anon key:" | awk '{print $3}') | |
echo "NEXT_PUBLIC_SUPABASE_URL=$API_URL" > .env.local | |
echo "NEXT_PUBLIC_SUPABASE_ANON_KEY=$ANON_KEY" >> .env.local | |
- run: npm run build | |
- run: npm run test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |