-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate CircleCI to GH Actions
- Loading branch information
1 parent
fda034d
commit a63a3e9
Showing
9 changed files
with
166 additions
and
116 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
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,98 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Ensure that Chrome is present | ||
run: google-chrome --version | ||
- name: Ensure that Firefox is present | ||
run: firefox --version | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Fix ssh+git access | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Cache Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
node_modules | ||
package-lock.json | ||
packages/*/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} | ||
- run: npm install | ||
- name: Lint code | ||
run: npm run lint | ||
- name: Lint docs | ||
run: npm run lint:markdown | ||
- run: npm run build:prod | ||
- name: Unit test | ||
run: npm run test | ||
|
||
browserstack-integration-tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }} | ||
BROWSERSTACK_KEY: ${{ secrets.BROWSERSTACK_KEY }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
browser: [safari, edge] | ||
experimental: [true] # due to instabilities of integration tests, let these fail, provided we review failures manually | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Fix ssh+git access | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Cache Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
node_modules | ||
package-lock.json | ||
packages/*/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} | ||
- run: npm install | ||
- run: npm run build:debug | ||
- run: npm run build:prod | ||
- name: Run integration tests in Browserstack | ||
run: node ./integration-tests/utils/browserstack.runner.js -e ${{ matrix.browser }} -c ./integration-tests/utils/browserstack.conf.js | ||
continue-on-error: true | ||
timeout-minutes: 10 | ||
|
||
local-integration-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Ensure that Chrome is present | ||
run: google-chrome --version | ||
- name: Ensure that Firefox is present | ||
run: firefox --version | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Fix ssh+git access for public submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Cache Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
node_modules | ||
package-lock.json | ||
packages/*/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} | ||
- run: npm install | ||
- run: npm run build:debug | ||
- run: npm run build:prod | ||
- name: Local integration tests using Headless Chrome | ||
run: npm run test:integration:local:_execute | ||
- name: Local integration tests using Firefox | ||
run: npm run test:integration:local:headlessFirefox:_execute |
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
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
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
Oops, something went wrong.