-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.45 KB
/
pull_request.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Pull Requests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true
env:
VALE_VERSION: "3.8.0"
jobs:
run-ci:
# runs-on: ubuntu-latest
runs-on: ubuntu-latest
defaults:
run:
shell: bash
if: ${{ !github.event.pull_request.draft && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' }}
steps:
# If the condition above is not met, aka, the PR is not in draft status, then this step is skipped.
# Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed.
# As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI.
- run: exit 0
requirements:
runs-on: ubuntu-latest
needs: run-ci
defaults:
run:
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get Vale
run: |
URL="https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
wget --quiet $URL --output-document vale.tar.gz
tar -xzf vale.tar.gz
chmod +x vale
sudo mv vale /usr/local/bin/
- name: Vale Version
run: vale --version
- name: Test Files Present?
run: make required_files
- name: Tests
run: make tests