-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: introduce Testing Apps + CI workflow
- Loading branch information
Showing
6 changed files
with
605 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Testing apps | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
testing_app: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
test_app: | ||
- name: pnpm | ||
working_directory: test_apps/pnpm | ||
script: | | ||
pnpm install --frozen-lockfile | ||
pnpm run dev | ||
pnpm run build | ||
name: Testing app (${{ matrix.test_app.name }}) | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.0.0 | ||
|
||
- name: Node ${{matrix.node-versions}} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- if: matrix.test_app.name == 'pnpm' | ||
name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Install Yarn Dependencies | ||
run: yarn install | ||
|
||
- name: Running script | ||
working-directory: ${{ matrix.test_app.working_directory }} | ||
run: ${{ matrix.test_app.script }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* This file is part of the Symfony Webpack Encore package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
console.log('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"license": "UNLICENSED", | ||
"private": true, | ||
"scripts": { | ||
"dev-server": "encore dev-server", | ||
"dev": "encore dev", | ||
"watch": "encore dev --watch", | ||
"build": "encore production --progress" | ||
}, | ||
"devDependencies": { | ||
"@symfony/webpack-encore": "link:../..", | ||
"webpack": "^5.74.0" | ||
} | ||
} |
Oops, something went wrong.