1
0
Fork 0
freesewing/config/templates/workflows/tests.pattern.yml
2020-03-14 17:09:14 +01:00

34 lines
912 B
YAML

name: Unit tests - {{ Pattern }}
on: [push, 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/{{ pattern }} && npm install
env:
CI: true
- name: Install peer & dependencies
run: cd packages/{{ pattern }} && npm install {{{ peerdeps }}} @freesewing/models @freesewing/pattern-info
env:
CI: true
- name: Build pattern
run: cd packages/{{ pattern }} && npm run build
- name: Run pattern unit tests
run: cd packages/{{ pattern }} && npm run testonlyci