build: prevent to push without building api schema #2
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: Assistants Web Tests | |
on: | |
push: | |
branches: [main] | |
paths: | |
- src/interfaces/assistants_web/** | |
pull_request: {} | |
merge_group: {} | |
jobs: | |
interface_tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/interfaces/assistants_web | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Set up Node.js and install dependencies | |
uses: ./.github/actions/js-install | |
- name: Check sssistants_web is formatted | |
run: npm run format | |
- name: Check sssistants_web can build | |
run: npm run build |