Skip to content

Merge pull request #1694 from ably/fix-lint-warnings #2434

Merge pull request #1694 from ably/fix-lint-warnings

Merge pull request #1694 from ably/fix-lint-warnings #2434

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run check-closure-compiler
- run: npx tsc --noEmit ably.d.ts build/ably-webworker.min.d.ts
# for some reason, this doesn't work in CI using `npx attw --pack .`
- run: npm pack
- run: npx attw ably-$(node -e "console.log(require('./package.json').version)").tgz --summary
- run: npm audit --production