Skip to content

Run different analysis job for fork #216

Run different analysis job for fork

Run different analysis job for fork #216

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- '*.md'
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- run: npm ci
- run: npm run check
- run: npm run test:run
- run: npm run build
- name: Check uncommited file
run: |
git diff
git_diff_stat=$(git diff --stat)
if [[ $git_diff_stat != '' ]]; then
echo "Uncommitted file found. Ensure you have run tests and committed all changes."
echo ""
echo $git_diff_stat
exit 1
else
echo 'clean'
fi