.gitignore: add .idea/ #4
This file contains hidden or 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: Build and Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run type check | |
run: npm run typecheck | |
- name: Build documentation and check for warnings | |
run: | | |
npm run build 2>&1 | tee build.log | |
if grep -i "warning" build.log; then | |
echo " Build completed with warnings. Failing the build." | |
exit 1 | |
else | |
echo " Build completed without warnings." | |
fi |