Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add preact cli e2e test #2958

Merged
merged 2 commits into from
Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/e2e-preact-cli-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
schedule:
- cron: '0 */4 * * *'
push:
branches:
- master
pull_request:
paths:
- .github/workflows/e2e-preact-cli-workflow.yml
- scripts/e2e-setup-ci.sh

name: 'E2E Preact CLI'
jobs:
chore:
name: 'Validating Preact CLI'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: 'Install Node'
uses: actions/setup-node@master
with:
node-version: 14.x

- name: 'Build the standard bundle'
run: |
node ./scripts/run-yarn.js build:cli
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
git clone https://github.com/preactjs-templates/default.git default
cd default/template
touch yarn.lock
echo $(cat package.json | jq '.name = "pnp-test"') > package.json
yarn
yarn build
- name: 'Running the TypeScript integration test'
run: |
source scripts/e2e-setup-ci.sh
git clone https://github.com/preactjs-templates/typescript.git default
cd default/template
touch yarn.lock
echo $(cat package.json | jq '.name = "pnp-test"') > package.json
yarn
yarn build
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ On top of our classic integration tests, we also run Yarn every day against the
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Gatsby/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-gatsby-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Next/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-next-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Vue-CLI/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-vue-cli-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Preact-CLI/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-preact-cli-workflow.yml)<br/>
</td><td valign="top">

[![](https://github.com/yarnpkg/berry/workflows/E2E%20ESBuild/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-esbuild-workflow.yml)<br/>
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby/content/features/plugnplay.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ A lot of very common frontend tools now support Plug'n'Play natively!
| Jest | Starting from 24.1+ |
| Next.js | Starting from 9.1.2+ |
| Parcel | Starting from 2.0.0-nightly.212+ |
| Preact CLI | Starting from 3.1.0+ |
| Prettier | Starting from 1.17+ |
| Rollup | Starting from `resolve` 1.9+ |
| Storybook | Starting from 6.0+ |
Expand Down