From e83d6fa87725b427a849b82a244eb95ad58a13b8 Mon Sep 17 00:00:00 2001 From: Okan YILDIRIM <63511519+ragokan@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:00:39 +0300 Subject: [PATCH] test and deploy --- .../{deploy.yml => test-and-deploy.yml} | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) rename .github/workflows/{deploy.yml => test-and-deploy.yml} (80%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/test-and-deploy.yml similarity index 80% rename from .github/workflows/deploy.yml rename to .github/workflows/test-and-deploy.yml index f27cdc5..958bf86 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -1,10 +1,9 @@ -# Sample workflow for building and deploying a VitePress site to GitHub Pages -# -name: Deploy Document site to Pages +# Workflow for testing and building Bunicorn, +# then deploying a VitePress site to GitHub Pages +name: Test Bunicorn and Deploy Docs Site on: - # Runs on pushes targeting the `main` branch. Change this to `master` if you're - # using the `master` branch as the default branch. + # Runs on pushes targeting the `main` branch push: branches: [main] @@ -24,8 +23,8 @@ concurrency: cancel-in-progress: false jobs: - # Build job - build: + # Build and test job + build-and-test: runs-on: ubuntu-latest steps: - name: Checkout @@ -41,6 +40,8 @@ jobs: uses: actions/configure-pages@v3 - name: Install dependencies run: bun install + - name: Run tests + run: bun run test - name: Build with VitePress run: | bun run docs:build @@ -55,10 +56,10 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - needs: build + needs: build-and-test runs-on: ubuntu-latest name: Deploy steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v2 \ No newline at end of file