Skip to content

Fix window consistency, transport filter for polygons, add URL state … #14

Fix window consistency, transport filter for polygons, add URL state …

Fix window consistency, transport filter for polygons, add URL state … #14

Workflow file for this run

name: Service CI
on:
push:
branches: [main]
paths: [service/**]
pull_request:
branches: [main]
paths: [service/**]
defaults:
run:
working-directory: service
jobs:
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: service/package-lock.json
- run: npm ci
- run: npm run typecheck
build:
name: Build
runs-on: ubuntu-latest
needs: typecheck
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: service/package-lock.json
- run: npm ci
- run: npm run build
docker:
name: Docker Build
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: service
push: false
cache-from: type=gha,scope=service
cache-to: type=gha,scope=service,mode=max
docker-push:
name: Docker Push
runs-on: ubuntu-latest
needs: docker
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: service
push: true
tags: ghcr.io/airframesio/coverage-service:latest
cache-from: type=gha,scope=service
cache-to: type=gha,scope=service,mode=max