Cleanup CI workflows, Remove Twenty CLI, Add Danger.js (#2452)

* Move dockerignore file away from root

* Delete Twenty CLI

* Create Twenty-utils

* Move release script

* Add danger.js to yarn

* Add danger

* Add Bot token

* Cancel previous steps CI

* Revert "Move dockerignore file away from root"

This reverts commit 7ed17bb2bcccd3312a455d35974c9c388687a0a9.
This commit is contained in:
Félix Malfait
2023-11-13 14:10:11 +01:00
committed by GitHub
parent 2befd0ff14
commit 44d046b363
31 changed files with 2209 additions and 6665 deletions

View File

@ -1,4 +1,4 @@
name: CD deply main
name: CD deploy main
on:
push:
branches:

View File

@ -21,3 +21,18 @@ jobs:
run: cd docs && yarn
- name: Docs / Build Documentation
run: cd docs && yarn build
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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 }}

26
.github/workflows/ci-utils.yaml vendored Normal file
View File

@ -0,0 +1,26 @@
name: CI Utils
on:
push:
branches:
- main
pull_request:
jobs:
danger-js:
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: Utils / Install Dependencies
run: cd packages/twenty-utils && yarn
- name: Utils / Run Danger.js
run: cd packages/twenty-utils && yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_GITHUB_BOT }}

View File

@ -1,22 +0,0 @@
name: CI-Vale
on:
push:
branches:
- main
pull_request:
jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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 }}