This commit is contained in:
Marc Rousavy
2021-02-23 14:29:59 +01:00
parent 1747c9a1c2
commit 338e7efa1e
3 changed files with 9 additions and 9 deletions

39
.github/workflows/validate-js.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Validate JS
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-js.yml'
- 'src/**'
- '*.js'
- '*.json'
- 'package.json'
pull_request:
paths:
- '.github/workflows/validate-js.yml'
- 'src/**'
- '*.js'
- '*.json'
- 'package.json'
jobs:
TypeScript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install modules
run: yarn
- name: Install modules (example/)
run: yarn example
- name: Run TypeScript
run: yarn typescript
- name: Run ESLint
run: yarn lint-ci