Use github actions instead of travis ci (#1041)

* Use github actions instead of travis ci

* Temp commit with typo

* Revert "Temp commit with typo"

This reverts commit 583b7f331e.
This commit is contained in:
Pavel Lobashov 2020-10-26 14:29:31 +03:00 committed by GitHub
parent caf44bc3f9
commit 0eda054a39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 23 deletions

26
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: check
on: [push]
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: run markdownlint linter
run: |
npm install -g markdownlint-cli
markdownlint CHANGELOG.md ROADMAP.md
spellchecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup aspell
run: sudo apt-get -y update && sudo apt-get -y install aspell aspell-en
- name: run spellchecker
run: |
SPELLCHECK_OUT=$(cat CHANGELOG.md | aspell --lang=en --encoding=utf-8 --personal=./.aspell.en.pws list)
echo $SPELLCHECK_OUT
if [[ $(echo -n $SPELLCHECK_OUT | wc -c) -ne 0 ]]; then exit 1 ; fi

View file

@ -1,23 +0,0 @@
language: node_js
node_js: "10"
git:
submodules: false
addons:
apt:
packages:
- aspell
- aspell-en
jobs:
include:
- stage: markdownlint
script:
- npm install -g markdownlint-cli
- markdownlint CHANGELOG.md ROADMAP.md
- stage: spellcheck
script:
- SPELLCHECK_OUT=$(cat CHANGELOG.md | aspell --lang=en --encoding=utf-8 --personal=./.aspell.en.pws list)
- echo $SPELLCHECK_OUT
- if [[ $(echo -n $SPELLCHECK_OUT | wc -c) -ne 0 ]]; then exit 1 ; fi