mirror of
https://github.com/pdfme/pdfme.git
synced 2026-02-20 07:47:16 -05:00
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Testing
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
pdfme-test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.x]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm run build
|
|
- run: npm run lint
|
|
- run: npm run test
|
|
env:
|
|
CI: true
|
|
|
|
playground-test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.x]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies and build project
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
- name: Run playground tests
|
|
run: |
|
|
cd playground
|
|
npm install
|
|
npm run lint
|
|
npm run build
|
|
npm run test
|
|
env:
|
|
CI: true
|