aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pr-lint.yml
blob: 6b32fe1168ec7099230f932dc6449d14e98b37e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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