twenty/.github/workflows/ci-docs.yaml
Quentin G ccd02fe58c
feat: init docker compose test (#4730)
Job testing if docker compose is working. It triggers on pull_requests.
2024-04-03 18:08:21 +02:00

45 lines
1.1 KiB
YAML

name: CI Docs
on:
push:
branches:
- main
paths:
- 'package.json'
- 'packages/twenty-docs/**'
pull_request:
paths:
- 'package.json'
- 'packages/twenty-docs/**'
jobs:
docs-build:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Docs / Install Dependencies
run: yarn
- name: Docs / Build Documentation
run: yarn nx build twenty-docs
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: errata-ai/vale-action@reviewdog
with:
files: ${{ steps.directories.outputs.LIST }}
fail_on_error: true
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
token: ${{ github.token }}
filter_mode: nofilter
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}