diff --git a/.github/workflows/test-lifecycle.yml b/.github/workflows/test-lifecycle.yml new file mode 100644 index 0000000..9ecd95f --- /dev/null +++ b/.github/workflows/test-lifecycle.yml @@ -0,0 +1,75 @@ +name: Test ObjectDocs Lifecycle + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + workflow_dispatch: + +jobs: + test-quick: + name: Quick Build Test + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: '10.x' + + - name: Install dependencies + run: pnpm install + + - name: Run quick build test + run: pnpm test:quick + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: quick-test-results + path: /tmp/objectdocs-*.log + retention-days: 7 + if-no-files-found: ignore + + test-full: + name: Full Lifecycle Test + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: '10.x' + + - name: Install dependencies + run: pnpm install + + - name: Run full lifecycle test + run: pnpm test:site + + - name: Upload server logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: full-test-results + path: /tmp/objectdocs-*.log + retention-days: 7 + if-no-files-found: ignore diff --git a/.gitignore b/.gitignore index 9727bcb..b7cd8b6 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,9 @@ next-env.d.ts .next # objectdocs -content/.objectdocs \ No newline at end of file +content/.objectdocs + +# test artifacts +/tmp/objectdocs-test-* +/tmp/dev-server.log +/tmp/start-server.log \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..75566da --- /dev/null +++ b/Makefile @@ -0,0 +1,46 @@ +# ObjectDocs Development Tasks +# Run with: make or pnpm run