mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-09 22:05:10 +00:00
Iterate CI checks (#351)
This commit is contained in:
parent
fba2709119
commit
7fe2f1a648
3 changed files with 43 additions and 13 deletions
12
.github/workflows/preview_changelog.yaml
vendored
12
.github/workflows/preview_changelog.yaml
vendored
|
@ -1,12 +0,0 @@
|
||||||
name: Preview Changelog
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [ opened, edited, labeled ]
|
|
||||||
jobs:
|
|
||||||
changelog:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Preview Changelog
|
|
||||||
uses: matrix-org/allchange@main
|
|
||||||
with:
|
|
||||||
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
|
24
.github/workflows/pull_request.yaml
vendored
Normal file
24
.github/workflows/pull_request.yaml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: Pull Request
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [ opened, edited, labeled, unlabeled ]
|
||||||
|
jobs:
|
||||||
|
changelog:
|
||||||
|
name: Preview Changelog
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: matrix-org/allchange@main
|
||||||
|
with:
|
||||||
|
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
enforce-label:
|
||||||
|
name: Enforce Labels
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
|
steps:
|
||||||
|
- uses: yogevbd/enforce-label-action@2.1.0
|
||||||
|
with:
|
||||||
|
REQUIRED_LABELS_ANY: "T-Defect,T-Enhancement,T-Task"
|
||||||
|
BANNED_LABELS: "X-Blocked"
|
||||||
|
BANNED_LABELS_DESCRIPTION: "Preventing merge whilst PR is marked blocked!"
|
20
.github/workflows/static_analysis.yaml
vendored
20
.github/workflows/static_analysis.yaml
vendored
|
@ -22,11 +22,29 @@ jobs:
|
||||||
run: "yarn run lint:types"
|
run: "yarn run lint:types"
|
||||||
|
|
||||||
i18n_lint:
|
i18n_lint:
|
||||||
name: "i18n Diff Check"
|
name: "i18n Check"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: "Get modified files"
|
||||||
|
id: changed_files
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
uses: tj-actions/changed-files@v19
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
src/i18n/strings/*
|
||||||
|
files_ignore: |
|
||||||
|
src/i18n/strings/en_EN.json
|
||||||
|
|
||||||
|
- name: "Assert only en_EN was modified"
|
||||||
|
if: github.event_name == 'pull_request' && steps.changed_files.outputs.any_modified == 'true'
|
||||||
|
run: |
|
||||||
|
echo "You can only modify en_EN.json, do not touch any of the other i18n files as Weblate will be confused"
|
||||||
|
exit 1
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
|
Loading…
Reference in a new issue