Skip to content

Commit

Permalink
Merge pull request #860 from Esri/github-actions-test-and-deploy
Browse files Browse the repository at this point in the history
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
dbouwman committed Jun 17, 2021
2 parents 1eb5986 + ff3261f commit 055f7ed
Show file tree
Hide file tree
Showing 5 changed files with 20,827 additions and 166 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-test.yml
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
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
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.
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 055f7ed

Please sign in to comment.