2022-12-20 00:59:14 +01:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2023-07-02 04:10:05 +02:00
|
|
|
release:
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-12-20 00:59:14 +01:00
|
|
|
|
2023-07-02 04:10:05 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
2022-12-20 00:59:14 +01:00
|
|
|
|
2023-07-02 04:10:05 +02:00
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
|
|
|
uses: actions/checkout@v1
|
2022-12-20 00:59:14 +01:00
|
|
|
|
2023-07-02 04:10:05 +02:00
|
|
|
- name: Install Node.js and NPM
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
cache: npm
|
2022-12-20 00:59:14 +01:00
|
|
|
|
2023-07-02 04:10:05 +02:00
|
|
|
- name: npm install
|
|
|
|
run: |
|
|
|
|
npm install --legacy-peer-deps
|
2022-12-20 00:59:14 +01:00
|
|
|
|
2023-07-02 04:10:05 +02:00
|
|
|
- name: npm test
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
npm run lint
|
|
|
|
npm run package
|
|
|
|
npm exec tsc
|
|
|
|
npm test
|