rfc/.github/workflows/main.yml

58 lines
1.4 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [pull_request]
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyspelling
# Install any additional libraries required: additional plugins, documentation building libraries, etc.
- name: Install Aspell
run: |
sudo apt-get install aspell aspell-en
- name: Spell check
run: python -m pyspelling
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 13
- name: Install
run: npm install
- name: Test
run: npm run lint
textlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 13
- name: Install
run: npm install
- name: Test
run: npm run textlint