forked from open-telemetry/opentelemetry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move lint and doc check to actions (open-telemetry#1081)
- Loading branch information
Showing
2 changed files
with
37 additions
and
35 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: restore lerna | ||
uses: actions/cache@master # must use unreleased master to cache multiple paths | ||
id: cache | ||
with: | ||
path: | | ||
node_modules | ||
packages/*/node_modules | ||
metapackages/*/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} | ||
|
||
- name: Bootstrap | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
npm install --only=dev --ignore-scripts | ||
npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev | ||
- name: Lint | ||
run: | | ||
npm run lint | ||
npm run lint:examples | ||
- name: Install and Build API Dependencies | ||
run: npx lerna bootstrap --no-ci --scope @opentelemetry/api --include-filtered-dependencies | ||
|
||
- name: Test Docs | ||
run: npm run docs-test |