CI: move CI env variable to the root of the workflow. (#29499)

This way we match the Travis CI behavior, and it's inherited by all steps.
This commit is contained in:
XhmikosR 2019-10-08 08:47:40 +03:00 committed by GitHub
parent 622c914a3a
commit 9c54d35797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
name: Tests
on: [push, pull_request]
env:
CI: true
jobs:
run:
@ -28,8 +30,6 @@ jobs:
- name: Install npm dependencies
run: npm ci
env:
CI: true
- name: Run tests
run: npm test