Test CI detect types not synced #410
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: pre-merge | |
on: | |
push: | |
branches: | |
- 'user/**' | |
- 'feature/**' | |
- 'improvement/**' | |
- 'bugfix/**' | |
- 'w/**' | |
- 'q/**' | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn install --frozen-lockfile --network-concurrency 1 | |
- name: run lint yml | |
run: yarn run --silent lint_yml | |
- name: run lint | |
run: yarn run --silent lint -- --max-warnings 0 | |
- name: run lint_md | |
run: yarn run --silent lint_md | |
- name: set host testing.local | |
run: sudo bash -c 'echo "127.0.0.1 testing.local" >> /etc/hosts' | |
- name: set host vaultclient.testing.local | |
run: sudo bash -c 'echo "127.0.0.1 vault.testing.local" >> /etc/hosts' | |
- name: run test | |
run: yarn run test | |
- name: check types are synced with js | |
run: yarn gen-types && git --no-pager diff --exit-code lib/ |