ci(github): add check to validate exported types being correct #1
Workflow file for this run
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: AreTheTypesWrong 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: Install Indy SDK | |
run: > | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \ | |
&& sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \ | |
&& sudo apt-get update \ | |
&& sudo apt-get install -y \ | |
libindy \ | |
libnullpay \ | |
libvcx \ | |
indy-cli \ | |
&& sudo rm -f /etc/apt/sources.list.d/sovrin.list* | |
- name: Set up NodeJS ${{ env.NODEJS_VERSION }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.NODEJS_VERSION }} | |
- uses: actions/[email protected] | |
- 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 |