Skip to content

ci(github): add check to validate exported types being correct #2

ci(github): add check to validate exported types being correct

ci(github): add check to validate exported types being correct #2

name: are-the-types-wrong-scan
env:
NODEJS_VERSION: v18.18.2
on:
push:
# Publish `main` as Docker `latest` image.
branches:
- main
# Publish `v1.2.3` tags as releases.
tags:
- v*
pull_request:
branches:
- main
jobs:
scanning:
name: AreTheTypesWrong scan
runs-on: ubuntu-22.04
steps:
- name: Set up NodeJS ${{ env.NODEJS_VERSION }}
uses: actions/setup-node@v4.0.3
with:
node-version: ${{ env.NODEJS_VERSION }}
- uses: actions/checkout@v4.1.7
- name: Installing AreTheTypesWrong Library
run: npm i -g @arethetypeswrong/cli
- run: npm run configure
- name: Running AreTheTypesWrong scan
run: yarn run are-the-types-wrong