Skip to content

Commit 53c088a

Browse files
committed
Update ci.yml with build, install-ci-test, mkdocs
* Add `npm run build` to `ci.yml` - Closes #132 - Remove `workflow.yml` * Use `npm install-ci-test` - Add `package-lock.json` to repository - Stop ignoring `package-lock.json` * Add `npm run mkdocs` to `ci.yml` - Check if the repository changes with `git diff --exit-code` - This will prevent us from committing something that changes the docs without actually committing the changes.
1 parent dcb94e7 commit 53c088a

File tree

5 files changed

+19381
-38
lines changed

5 files changed

+19381
-38
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
name: CI
2+
23
on:
4+
push:
35
pull_request:
4-
branches:
5-
- main
66

77
jobs:
88
setup-test-lint:
99
name: Setup, Test, and Lint
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v1
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
1614
with:
1715
node-version: 14
18-
- run: npm install
19-
- run: npm test
20-
- run: npm run lint:check
16+
- name: Install and test
17+
run: npm install-ci-test
18+
- name: Build
19+
run: npm run build
20+
- name: Lint
21+
run: npm run lint:check
22+
- name: Check for changes to docs
23+
run: |
24+
npm run mkdocs
25+
git diff --exit-code

.github/workflows/workflow.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
package-lock.json
21
docs/api/*.json
32
docs/api/local_doc
43
.vscode
@@ -47,10 +46,6 @@ jspm_packages
4746
# Editors
4847
.idea
4948

50-
51-
# npm package lock
52-
yarn.lock
53-
5449
others
5550
.DS_Store
5651

.npmignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ coverage
1010
# Dependency directories
1111
node_modules
1212

13-
# npm package lock
14-
package-lock.json
15-
yarn.lock
16-
1713
# project files
1814
test
1915
examples

0 commit comments

Comments
 (0)