diff --git a/.github/workflows/.env-gatsby b/.github/workflows/.env-gatsby deleted file mode 100644 index 65b2744..0000000 --- a/.github/workflows/.env-gatsby +++ /dev/null @@ -1,2 +0,0 @@ -CRAFTGQL_TOKEN=TEST-GRAPHQL-TOKEN -CRAFTGQL_URL=http://nginx/api diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c005443..3881d19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ permissions: contents: read jobs: test: - name: Gatsby + Craft with PHP ${{ matrix.php-versions }} + ${{ matrix.db }} + name: Craft on PHP ${{ matrix.php-versions }} + ${{ matrix.db }} runs-on: ${{ matrix.operating-system }} strategy: matrix: @@ -76,21 +76,11 @@ jobs: - name: Set Craft writable folder permissions run: chmod -R 777 config storage web/cpresources + # This project is used for schema introspection, so we do need to know that the API is healthy: - name: Ping GraphQL endpoint run: |- curl -s -X POST -H "Content-Type: application/json" --data '{ "query": "{ ping }" }' http://nginx/api - - name: Prepare Gatsby environment - run: cp .github/workflows/.env-gatsby headless-front-end/gatsby/.env - - - name: Install Gatsby dependencies - run: npm install && npm install gatsby-cli - working-directory: headless-front-end/gatsby - - - name: Build Gatsby site - run: npm run build - working-directory: headless-front-end/gatsby - - name: Upload Craft logs uses: actions/upload-artifact@v2 if: failure() diff --git a/headless-front-end/README.md b/headless-front-end/README.md index dda5bb1..8a09e5f 100644 --- a/headless-front-end/README.md +++ b/headless-front-end/README.md @@ -2,6 +2,9 @@ This directory is for front-end headless framework implementations for use with GraphQL. +> [WARNING] +> The Gatsby front-end currently works with the development server, but not during builds. We will be retiring it in favor of headless front-ends that use Craft’s GraphQL API, directly. + * Gatsby (React.js) ✅ * Gridsome (Vue.js) 🚧 * More? 🤔