Skip to content

Commit

Permalink
chore: introduce Testing Apps + CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Aug 2, 2022
1 parent 0367375 commit 32fd06f
Show file tree
Hide file tree
Showing 6 changed files with 605 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/apps.yml
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 production
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 }}
12 changes: 12 additions & 0 deletions test_apps/pnpm/assets/app.js
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!');
14 changes: 14 additions & 0 deletions test_apps/pnpm/package.json
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"
}
}

0 comments on commit 32fd06f

Please sign in to comment.