Added handling for test cases #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and test | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
container: | |
image: node:lts-alpine | |
steps: | |
- uses: actions/checkout@v2 | |
- run: yarn | |
- run: yarn run lint --max-warnings 1 | |
build: | |
needs: [lint] | |
name: Build | |
runs-on: ubuntu-latest | |
# if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
container: | |
image: node:lts-alpine | |
steps: | |
- uses: actions/checkout@v2 | |
- run: yarn | |
- run: npm install -g [email protected] | |
- run: tsc -b |