ci(workflows): sync central workflows #1228
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Linting | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# due to bug in npm we have to add this config | ||
# bugs https://github.com/actions/setup-node/issues/214 https://github.com/npm/cli/issues/2610 | ||
- name: Reconfigure git to use HTTP authentication | ||
run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/ | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm run lint |