From 0eda054a3972e769866d7896813acfaba579d2d6 Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Mon, 26 Oct 2020 14:29:31 +0300 Subject: [PATCH] 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 583b7f331e25217f5cdf12b8b07beaf18aeed116. --- .github/workflows/check.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 23 ----------------------- 2 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/check.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..773bce45 --- /dev/null +++ b/.github/workflows/check.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 113d8ef8..00000000 --- a/.travis.yml +++ /dev/null @@ -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