Skip to content

v2.2.0

v2.2.0 #1114

Workflow file for this run

name: Madoc TS build
on:
pull_request:
paths:
- "services/madoc-ts/src/**"
- "services/madoc-ts/migrations/**"
- "services/madoc-ts/__tests__/**"
- "services/madoc-ts/translations/**"
- "services/madoc-ts/schemas/**"
- "services/madoc-ts/package.json"
- "services/madoc-ts/yarn.lock"
- "services/madoc-ts/Dockerfile"
- "services/madoc-ts/ecosystem.config.js"
- "services/madoc-ts/webpack.config.js"
- "services/madoc-ts/tsconfig.json"
push:
branches: [main]
paths:
- ".github/workflows/madoc-ts.yaml"
- "services/madoc-ts/src/**"
- "services/madoc-ts/migrations/**"
- "services/madoc-ts/__tests__/**"
- "services/madoc-ts/translations/**"
- "services/madoc-ts/schemas/**"
- "services/madoc-ts/package.json"
- "services/madoc-ts/yarn.lock"
- "services/madoc-ts/Dockerfile"
- "services/madoc-ts/ecosystem.config.js"
- "services/madoc-ts/webpack.config.js"
- "services/madoc-ts/tsconfig.json"
jobs:
madoc-ts-build:
runs-on: ubuntu-latest
name: Node build
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-madoc-ts-${{ hashFiles('services/madoc-ts/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-madoc-ts-
- working-directory: services/madoc-ts
run: yarn install --frozen-lockfile --non-interactive
- uses: actions/cache@v1
with:
path: services/madoc-ts/node_modules/.vite
key: vite-cache
restore-keys: |
vite-cache
- working-directory: services/madoc-ts
run: yarn run build:vite-producer
- working-directory: services/madoc-ts
run: yarn run build:vite-auth
- working-directory: services/madoc-ts
run: yarn run build:vite-server
- working-directory: services/madoc-ts
run: yarn run build:vite-scheduler
- working-directory: services/madoc-ts
run: yarn run build:frontend
- working-directory: services/madoc-ts
run: yarn run test