Check node version #24
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
on: | |
push: | |
jobs: | |
tsc: | |
name: tsc | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tests | |
run: yarn test | |
- name: Check for untranspiled TypeScript code | |
run: | | |
node -v | |
tsc | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "Running 'tsc' should not result in any changes. Run 'tsc' before a commit."; | |
exit 1 | |
fi |