From: Jérôme Benoit Date: Fri, 1 May 2020 12:45:08 +0000 (+0200) Subject: GitHub action: properly separate different steps in jobs X-Git-Tag: v1.0.1-0~338 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d8fb4c44b4bdad2cde8da32c0095b7405e9c506c;p=e-mobility-charging-stations-simulator.git GitHub action: properly separate different steps in jobs Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 62dc754f..d488e5fe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,8 @@ on: [pull_request, push] jobs: lint: + env: + CI: true runs-on: ubuntu-latest @@ -17,9 +19,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: npm install and run lint - run: | - npm ci - npm run lint - env: - CI: true + - name: npm install + run: npm ci + - name: npm run lint + run: npm run lint