diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 24d1d5ace2..9d237f4b5c 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -8,6 +8,7 @@ concurrency: group: ci-${{ github.ref }} cancel-in-progress: true + jobs: run-ci: runs-on: ubuntu-latest @@ -20,6 +21,27 @@ jobs: # Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed. # As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI. - run: exit 0 + + run-test: + name: Test + needs: [run-ci] + runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'npm' + + - run: npm ci + + - name: Test + run: npm run test vale: # Image Optimizer docs: https://github.com/calibreapp/image-actions diff --git a/.github/workflows/release-preview.yaml b/.github/workflows/release-preview.yaml index 5142162fe9..87ad55b13c 100644 --- a/.github/workflows/release-preview.yaml +++ b/.github/workflows/release-preview.yaml @@ -14,6 +14,9 @@ env: GATSBY_ALGOLIA_SEARCH_KEY: ${{ secrets.DEV_GATSBY_ALGOLIA_SEARCH_KEY }} GATSBY_ALGOLIA_APP_ID: ${{ secrets.DEV_GATSBY_ALGOLIA_APP_ID }} ALGOLIA_ADMIN_KEY: ${{ secrets.DEV_ALGOLIA_ADMIN_KEY }} + GATSBY_MENDABLE_API_KEY: ${{ secrets.GATSBY_MENDABLE_API_KEY }} + NETLIFY_PREVIEW: false + # The GATSBY_FULLSTORY_ORGID is removed so that preview builds don't get recorded in FullStory concurrency: group: preview-${{ github.ref }} diff --git a/.github/workflows/version-branch-update.yaml b/.github/workflows/version-branch-update.yaml index 162412fbef..fa4f08cd8d 100644 --- a/.github/workflows/version-branch-update.yaml +++ b/.github/workflows/version-branch-update.yaml @@ -4,6 +4,9 @@ on: push: branches: - 'version-*' + pull_request: + branches: + - 'version-*' concurrency: group: version-${{ github.ref }} @@ -31,13 +34,6 @@ jobs: - run: npm ci - - name: Omit Netlify Preview - run: | - cat > netlify.toml - [build] - ignore = "exit 0" - <