Skip to content

Bump flatted from 3.2.7 to 3.4.2 #853

Bump flatted from 3.2.7 to 3.4.2

Bump flatted from 3.2.7 to 3.4.2 #853

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
skip_if_running:
name: Skip job if already running
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check_skip.outputs.should_skip }}
steps:
- uses: fkirc/skip-duplicate-actions@master
id: check_skip
with:
concurrent_skipping: same_content_newer
do_not_skip: '["push", "workflow_dispatch"]'
all_checks:
name: All checks
runs-on: ubuntu-latest
needs: skip_if_running
if: needs.skip_if_running.outputs.skip != 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run terminusdb server
run: |
docker run --detach --publish 127.0.0.1:6363:6363 terminusdb/terminusdb-server:dev && sleep 10
docker ps
netstat -an |grep 6363
- name: Install, build and test
run: |
npm ci
npm run build
npm run validate-types:strict
npm run test
npm run test:integration
- name: Lint
run: npm run lint:check
- name: Generate test coverage report
run: npm run coveralls-after
- name: Check Coveralls availability
id: coveralls_check
run: |
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 https://coveralls.io || echo "000")
echo "Coveralls returned HTTP status: $HTTP_STATUS"
if [ "$HTTP_STATUS" -ge 500 ] 2>/dev/null || [ "$HTTP_STATUS" = "000" ]; then
echo "Coveralls is unavailable (status $HTTP_STATUS), skipping upload"
echo "available=false" >> "$GITHUB_OUTPUT"
else
echo "available=true" >> "$GITHUB_OUTPUT"
fi
- name: Update coveralls
if: steps.coveralls_check.outputs.available == 'true'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}