From dd0634d7774902f413892e9b7d05d5d852db2619 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sat, 19 Oct 2019 16:25:04 +0200 Subject: [PATCH] add lint workflow --- .github/workflows/lint.yml | 22 +++++++++++++++++++ .github/workflows/nodejs.yml | 41 ------------------------------------ 2 files changed, 22 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..3c030d278e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Node CI + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install + run: | + npm ci + env: + CI: true + - run: npm run lint \ No newline at end of file diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index 974f40f3e4..0000000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Node CI - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x] - - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm install, build, and test - run: | - npm ci - env: - CI: true - lint: - needs: build - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x] - - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm run lint - run: | - npm run lint