-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #860 from Esri/github-actions-test-and-deploy
Merging so we have _some_ level of CI, but we expect some random failures that seem to stem from `expect(fetchMock.called()).toBe(false)`
- Loading branch information
Showing
5 changed files
with
20,827 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: build-test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: [12, 14] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Test in Node | ||
run: npm run test:node | ||
|
||
- name: Test in Chrome | ||
run: npm run test:chrome:ci | ||
|
||
- name: Test in Firefox | ||
run: npm run test:firefox:ci | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
directory: ./coverage |
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,30 @@ | ||
name: Deploy Documentation | ||
|
||
on: | ||
workflow_run: | ||
workflows: [build-test] | ||
branches: [master] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: NPM Install | ||
run: npm install | ||
|
||
- name: Build Docs | ||
run: npm run docs:build | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@4.1.4 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: docs/build/arcgis-rest-js # The folder the action should deploy. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.