aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pr-lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pr-lint.yml')
-rw-r--r--.github/workflows/pr-lint.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml
new file mode 100644
index 0000000000..6b32fe1168
--- /dev/null
+++ b/.github/workflows/pr-lint.yml
@@ -0,0 +1,37 @@
+# Checks the PR itself for hygiene things.
+
+name: PR Lint
+
+on:
+ pull_request:
+ # Necessary to re-run if someone edits the PR without a new pushed commit.
+ types: [opened, edited, synchronize, reopened]
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ path: mdn/translated-content
+
+ - uses: actions/checkout@v2
+ with:
+ repository: mdn/content
+ path: mdn/content
+
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v2.1.4
+ with:
+ node-version: "12"
+
+ - name: Install all yarn packages
+ working-directory: ${{ github.workspace }}/mdn/content/pr-lint
+ run: |
+ yarn --frozen-lockfile
+
+ - name: Run checks
+ working-directory: ${{ github.workspace }}/mdn/content/pr-lint
+ run: |
+ yarn run check