Skip to content

Commit

Permalink
Remove Gatsby from test workflow/action
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Feb 22, 2024
1 parent ad3cf12 commit 42ef62a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/.env-gatsby

This file was deleted.

14 changes: 2 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions headless-front-end/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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? 🤔

0 comments on commit 42ef62a

Please sign in to comment.