mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-01-01 10:39:04 -05:00
- Make react/react-dom/test-renderer use the same major version - Upgrade @types/node to 14.18.0. This was necessary mainly for typing. Update the test versions as well - Strip out react-animate-css, just use basic css animation fadeIn/fadeOut - Made linter happy now
43 lines
917 B
YAML
43 lines
917 B
YAML
name: Test
|
|
|
|
# Test only if js/ts files are changed
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.js*'
|
|
- '**.ts*'
|
|
pull_request:
|
|
paths:
|
|
- '**.js*'
|
|
- '**.ts*'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install Node.js, NPM and Yarn
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14.18.0'
|
|
|
|
- name: yarn install
|
|
run: |
|
|
yarn install --frozen-lockfile --network-timeout 300000 --network-concurrency 1
|
|
|
|
- name: yarn test
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
yarn package
|
|
yarn lint
|
|
yarn tsc-silent -p ./tsconfig.json --suppress 2702@/node_modules/react-chartjs-2/ 9006@/src/main.dev.js
|
|
yarn test
|