Skip to content

Formatting and linting #195

Formatting and linting

Formatting and linting #195

Workflow file for this run

name: DV360 Build
on:
pull_request:
push:
branches:
- main
jobs:
build-dv360:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set bash to strict mode
run: set -euox pipefail
- name: Set Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install yarn
run: npm -g install yarn
- name: Install parent dependencies
run: npx yarn
- name: Install DV360 dependencies
run: npx yarn --cwd ./dv360
- name: Build dv360 prod
run: npx yarn --cwd ./dv360 build:prod
- name: Build dv360 dev
run: npx yarn --cwd ./dv360 build:dev
- name: Ensure clasp is installed (for yarn push)
run: npx yarn --cwd ./dv360 clasp --help
- name: Print errors
run: find . -name "*.warn" -type f -exec cat {} \;
- name: Fail on errors
if: ${{ steps.build-dv360.outputs.error || steps.build-dev-dv360.outputs.error }}
run: exit 1