Only lint once in CI (#5128)

This commit is contained in:
Maribeth Bottorff
2021-07-19 18:14:23 -07:00
committed by Monica Kozbial
parent 50a66c024d
commit e9a1668445
2 changed files with 20 additions and 1 deletions

View File

@@ -41,3 +41,19 @@ jobs:
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Npm Install
run: npm install
- name: Lint
run: npm run lint

View File

@@ -49,7 +49,10 @@ run_test_command () {
}
# Lint the codebase.
run_test_command "eslint" "eslint ."
# Skip for CI environments, because linting is run separately.
if [ -z $CI ]; then
run_test_command "eslint" "eslint ."
fi
# Run the full usual build process.
run_test_command "build" "npm run build"