#!/bin/bash

set -eux

. /opt/ci-toolset/functions.sh

export GOOGLE_PROJECT={{googleProject}}
export GOOGLE_ZONE=europe-west1-b

configure-google-cloud

make build

make lint
make test

pnpm build

gcloud storage cp ./dist/client/_astro gs://{{cdn}}/ --recursive --cache-control 'public,max-age=2592000'

wave build {{name}} --source .
wave deploy {{name}} --sentry {{sentry}}
