1
0
Fork 0

chore: Added description and workflow for hortensia

This commit is contained in:
Joost De Cock 2021-01-30 14:18:19 +01:00
parent 2e2a495bb5
commit 6ccd6a5bb9
2 changed files with 33 additions and 0 deletions

32
.github/workflows/tests.hortensia.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Unit tests - Hortensia
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: cd packages/hortensia && npm install
env:
CI: true
- name: Install peer & test dependencies
run: "cd packages/hortensia && npm install @freesewing/core@^2.12.1 @freesewing/plugin-bundle@^2.12.1 @freesewing/models@2.12.1 @freesewing/pattern-info@2.12.1 mocha chai"
env:
CI: true
- name: Build pattern
run: cd packages/hortensia && npm run build
- name: Run pattern unit tests
run: cd packages/hortensia && npm run testci