setup prettier and eslint (changelog ignore)

This commit is contained in:
garronej
2021-10-11 21:09:05 +02:00
parent c4ba470dc4
commit 9f8218efb7
7 changed files with 1393 additions and 60 deletions

View File

@ -9,8 +9,25 @@ on:
jobs:
test_lint:
runs-on: ubuntu-latest
if: ${{ !github.event.created && github.repository != 'garronej/ts_ci' }}
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.1.3
- uses: bahmutov/npm-install@v1
- name: If this step fails run 'npm run lint' and 'npm run format' then commit again.
run: |
PACKAGE_MANAGER=npm
if [ -f "./yarn.lock" ]; then
PACKAGE_MANAGER=yarn
fi
$PACKAGE_MANAGER run lint:check
$PACKAGE_MANAGER run format:check
test:
runs-on: macos-10.15
needs: test_lint
strategy:
matrix:
node: [ '15', '14', '13' ]