1
0
Fork 0

chore: Updated workflows

This commit is contained in:
Joost De Cock 2020-03-14 15:37:36 +01:00
parent a085de71fd
commit ea5c221d95
62 changed files with 142 additions and 234 deletions

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/aaron/src/**.js'
- 'packages/aaron/config/**.js'
- 'packages/aaron/tests/**.js'
- 'packages/aaron/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/benjamin/src/**.js'
- 'packages/benjamin/config/**.js'
- 'packages/benjamin/tests/**.js'
- 'packages/benjamin/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/bent/src/**.js'
- 'packages/bent/config/**.js'
- 'packages/bent/tests/**.js'
- 'packages/bent/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/breanna/src/**.js'
- 'packages/breanna/config/**.js'
- 'packages/breanna/tests/**.js'
- 'packages/breanna/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/brian/src/**.js'
- 'packages/brian/config/**.js'
- 'packages/brian/tests/**.js'
- 'packages/brian/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/bruce/src/**.js'
- 'packages/bruce/config/**.js'
- 'packages/bruce/tests/**.js'
- 'packages/bruce/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/carlita/src/**.js'
- 'packages/carlita/config/**.js'
- 'packages/carlita/tests/**.js'
- 'packages/carlita/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/carlton/src/**.js'
- 'packages/carlton/config/**.js'
- 'packages/carlton/tests/**.js'
- 'packages/carlton/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/cathrin/src/**.js'
- 'packages/cathrin/config/**.js'
- 'packages/cathrin/tests/**.js'
- 'packages/cathrin/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/examples/src/**.js'
- 'packages/examples/config/**.js'
- 'packages/examples/tests/**.js'
- 'packages/examples/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/florent/src/**.js'
- 'packages/florent/config/**.js'
- 'packages/florent/tests/**.js'
- 'packages/florent/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/fu/src/**.js'
- 'packages/fu/config/**.js'
- 'packages/fu/tests/**.js'
- 'packages/fu/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/holmes/src/**.js'
- 'packages/holmes/config/**.js'
- 'packages/holmes/tests/**.js'
- 'packages/holmes/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/huey/src/**.js'
- 'packages/huey/config/**.js'
- 'packages/huey/tests/**.js'
- 'packages/huey/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/hugo/src/**.js'
- 'packages/hugo/config/**.js'
- 'packages/hugo/tests/**.js'
- 'packages/hugo/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/jaeger/src/**.js'
- 'packages/jaeger/config/**.js'
- 'packages/jaeger/tests/**.js'
- 'packages/jaeger/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/penelope/src/**.js'
- 'packages/penelope/config/**.js'
- 'packages/penelope/tests/**.js'
- 'packages/penelope/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/rendertest/src/**.js'
- 'packages/rendertest/config/**.js'
- 'packages/rendertest/tests/**.js'
- 'packages/rendertest/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/sandy/src/**.js'
- 'packages/sandy/config/**.js'
- 'packages/sandy/tests/**.js'
- 'packages/sandy/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/shin/src/**.js'
- 'packages/shin/config/**.js'
- 'packages/shin/tests/**.js'
- 'packages/shin/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/simon/src/**.js'
- 'packages/simon/config/**.js'
- 'packages/simon/tests/**.js'
- 'packages/simon/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/simone/src/**.js'
- 'packages/simone/config/**.js'
- 'packages/simone/tests/**.js'
- 'packages/simone/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/sven/src/**.js'
- 'packages/sven/config/**.js'
- 'packages/sven/tests/**.js'
- 'packages/sven/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/tamiko/src/**.js'
- 'packages/tamiko/config/**.js'
- 'packages/tamiko/tests/**.js'
- 'packages/tamiko/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/theo/src/**.js'
- 'packages/theo/config/**.js'
- 'packages/theo/tests/**.js'
- 'packages/theo/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/trayvon/src/**.js'
- 'packages/trayvon/config/**.js'
- 'packages/trayvon/tests/**.js'
- 'packages/trayvon/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/tutorial/src/**.js'
- 'packages/tutorial/config/**.js'
- 'packages/tutorial/tests/**.js'
- 'packages/tutorial/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/wahid/src/**.js'
- 'packages/wahid/config/**.js'
- 'packages/wahid/tests/**.js'
- 'packages/wahid/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/waralee/src/**.js'
- 'packages/waralee/config/**.js'
- 'packages/waralee/tests/**.js'
- 'packages/waralee/rollup.config.js'
pull_request:
paths: *files
@ -17,14 +18,13 @@ jobs:
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js $
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: $
node-version: ${{ matrix.node-version }}
- name: Install dependencies
env:
CI: true

View file

@ -3,8 +3,5 @@
const {{ Pattern }} = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta = {{ metadata }}
// Test config
testPatternConfig('{{ pattern }}', new {{ Pattern }}(), meta)
testPatternConfig('{{ pattern }}', new {{ Pattern }}())

View file

@ -5,6 +5,7 @@ on:
paths: &files
- 'packages/{{ pattern }}/src/**.js'
- 'packages/{{ pattern }}/config/**.js'
- 'packages/{{ pattern }}/tests/**.js'
- 'packages/{{ pattern }}/rollup.config.js'
pull_request:
paths: *files
@ -17,7 +18,7 @@ jobs:
strategy:
matrix:
node-version: [12.x]
{{=<% %>=}}
steps:
- name: Checkout repository
uses: actions/checkout@v2
@ -28,6 +29,7 @@ jobs:
- name: Install dependencies
env:
CI: true
<%={{ }}=%>
run: cd packages/{{ pattern }}
- name: Build pattern
run: npm run build --if-present

View file

@ -3,8 +3,5 @@
const Aaron = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('aaron', new Aaron(), meta)
testPatternConfig('aaron', new Aaron())

View file

@ -3,8 +3,5 @@
const Benjamin = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('benjamin', new Benjamin(), meta)
testPatternConfig('benjamin', new Benjamin())

View file

@ -3,8 +3,5 @@
const Bent = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('bent', new Bent(), meta)
testPatternConfig('bent', new Bent())

View file

@ -3,8 +3,5 @@
const Breanna = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('breanna', new Breanna(), meta)
testPatternConfig('breanna', new Breanna())

View file

@ -3,8 +3,5 @@
const Brian = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('brian', new Brian(), meta)
testPatternConfig('brian', new Brian())

View file

@ -3,8 +3,5 @@
const Bruce = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('bruce', new Bruce(), meta)
testPatternConfig('bruce', new Bruce())

View file

@ -3,8 +3,5 @@
const Carlita = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('carlita', new Carlita(), meta)
testPatternConfig('carlita', new Carlita())

View file

@ -3,8 +3,5 @@
const Carlton = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('carlton', new Carlton(), meta)
testPatternConfig('carlton', new Carlton())

View file

@ -3,8 +3,5 @@
const Cathrin = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('cathrin', new Cathrin(), meta)
testPatternConfig('cathrin', new Cathrin())

View file

@ -3,8 +3,5 @@
const Examples = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('examples', new Examples(), meta)
testPatternConfig('examples', new Examples())

View file

@ -3,8 +3,5 @@
const Florent = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('florent', new Florent(), meta)
testPatternConfig('florent', new Florent())

View file

@ -3,8 +3,5 @@
const Fu = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('fu', new Fu(), meta)
testPatternConfig('fu', new Fu())

View file

@ -3,8 +3,5 @@
const Holmes = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('holmes', new Holmes(), meta)
testPatternConfig('holmes', new Holmes())

View file

@ -3,8 +3,5 @@
const Huey = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('huey', new Huey(), meta)
testPatternConfig('huey', new Huey())

View file

@ -3,8 +3,5 @@
const Hugo = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('hugo', new Hugo(), meta)
testPatternConfig('hugo', new Hugo())

View file

@ -3,8 +3,5 @@
const Jaeger = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('jaeger', new Jaeger(), meta)
testPatternConfig('jaeger', new Jaeger())

View file

@ -3,8 +3,5 @@
const Penelope = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('penelope', new Penelope(), meta)
testPatternConfig('penelope', new Penelope())

View file

@ -3,8 +3,5 @@
const Rendertest = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('rendertest', new Rendertest(), meta)
testPatternConfig('rendertest', new Rendertest())

View file

@ -3,8 +3,5 @@
const Sandy = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('sandy', new Sandy(), meta)
testPatternConfig('sandy', new Sandy())

View file

@ -3,8 +3,5 @@
const Shin = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('shin', new Shin(), meta)
testPatternConfig('shin', new Shin())

View file

@ -3,8 +3,5 @@
const Simon = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('simon', new Simon(), meta)
testPatternConfig('simon', new Simon())

View file

@ -3,8 +3,5 @@
const Simone = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('simone', new Simone(), meta)
testPatternConfig('simone', new Simone())

View file

@ -3,8 +3,5 @@
const Sven = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('sven', new Sven(), meta)
testPatternConfig('sven', new Sven())

View file

@ -3,8 +3,5 @@
const Tamiko = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('tamiko', new Tamiko(), meta)
testPatternConfig('tamiko', new Tamiko())

View file

@ -3,8 +3,5 @@
const Theo = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('theo', new Theo(), meta)
testPatternConfig('theo', new Theo())

View file

@ -3,8 +3,5 @@
const Trayvon = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('trayvon', new Trayvon(), meta)
testPatternConfig('trayvon', new Trayvon())

View file

@ -3,8 +3,5 @@
const Tutorial = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('tutorial', new Tutorial(), meta)
testPatternConfig('tutorial', new Tutorial())

View file

@ -3,8 +3,5 @@
const Wahid = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('wahid', new Wahid(), meta)
testPatternConfig('wahid', new Wahid())

View file

@ -3,8 +3,5 @@
const Waralee = require('../dist')
const testPatternConfig = require('../../../tests/patterns/config')
// The pattern's metadata from package.json
const meta =
// Test config
testPatternConfig('waralee', new Waralee(), meta)
testPatternConfig('waralee', new Waralee())

View file

@ -481,27 +481,33 @@ function configurePatternUnitTests(pkg, config) {
Pattern: capitalize(pkg)
};
for (let file of ["config.test.js"]) {
let template = handlebars.compile(
fs.readFileSync(path.join(source, file), "utf-8")
fs.writeFileSync(
path.join(dest, file),
Mustache.render(
fs.readFileSync(path.join(source, file), "utf-8"),
replace
)
);
fs.writeFileSync(path.join(dest, file), template(replace));
}
// Add workflow file for Github actions
let template = handlebars.compile(
fs.readFileSync(path.join(
fs.writeFileSync(
path.join(
config.repoPath,
'config',
'templates',
'.github',
'workflows',
'tests.pattern.yml'
), "utf-8")
`tests.${pkg}.yml`
),
Mustache.render(
fs.readFileSync(path.join(
config.repoPath,
'config',
'templates',
'workflows',
'tests.pattern.yml'
), "utf-8"),
replace
)
);
fs.writeFileSync(path.join(
config.repoPath,
'.github',
'workflows',
`tests.${pkg}.yml`
), template(replace));
}
/**

View file

@ -4,18 +4,8 @@
*
* @param string me: Name of the pattern (eg 'aaron')
* @param object Pattern: Instantiated pattern object
* @param object meta: Object that holds pattern metadata eg: {
* name: 'aaron',
* version: '2.4.3',
* design: 'Joost De Cock',
* code: 'Joost De Cock',
* department: 'unisex',
* type: 'pattern',
* difficulty: 3,
* tags: [ 'underwear', 'top', 'basics' ],
* }
*/
const testPatternConfig = (design, pattern, meta) => {
const testPatternConfig = (design, pattern) => {
const expect = require("chai").expect;
const models = require("@freesewing/models")
const patterns = require("@freesewing/pattern-info")