From bf56cbe1bc949409681103c4f8d1cd1998544207 Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 28 Nov 2020 12:37:42 +0100 Subject: [PATCH] running linter on GitHub actions --- .editorconfig | 3 +++ .github/workflows/lint.yaml | 13 +++++++++++++ .travis.yml | 7 ------- 3 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/lint.yaml delete mode 100644 .travis.yml diff --git a/.editorconfig b/.editorconfig index b233a7f..1df4767 100644 --- a/.editorconfig +++ b/.editorconfig @@ -29,3 +29,6 @@ indent_size = 4 [*.nsh] indent_size = 2 + +[{*.yml,*.yaml}] +indent_size = 2 diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..65c9a39 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,13 @@ +name: Deploy +on: [push, pull_request] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install npm + run: npm ci + - name: Lint + run: npm run lint diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2af7f82..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - stable -install: - - npm install -script: - - npm run lint