-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move CI to GitHub actions workflow (#3493)
- Loading branch information
1 parent
89bdc3c
commit dffa27a
Showing
3 changed files
with
105 additions
and
14 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 |
---|---|---|
|
@@ -5,15 +5,100 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
CI_Workflow: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build, Lint & Jest Test | ||
steps: | ||
- name: Get sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '15' | ||
node-version: '14' | ||
|
||
- run: echo "Workflow is added!" | ||
- name: Prepare yarn | ||
run: | | ||
sudo npm i -g [email protected] --force | ||
yarn --no-progress | ||
- name: Build | ||
run: | | ||
yarn build | ||
chmod -R 777 . | ||
- name: Linter & Jest Tests | ||
run: | | ||
yarn lint | ||
yarn test:ci | ||
- name: Zip artifacts | ||
run: 7z a -tzip -mx3 -mmt2 artifacts.zip packages | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: devextreme-reactive-artifacts | ||
path: artifacts.zip | ||
retention-days: 1 | ||
|
||
test_cafe: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
strategy: | ||
matrix: | ||
component: ['grid', 'chart', 'scheduler'] | ||
name: Test Cafe tests ${{ matrix.component }} | ||
steps: | ||
- name: Get sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Prepare yarn | ||
run: | | ||
sudo npm i -g [email protected] --force | ||
yarn --no-progress | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: devextreme-reactive-artifacts | ||
|
||
- name: Unpack artifacts | ||
run: 7z x -y artifacts.zip | ||
|
||
- name: TestCafe test | ||
run: yarn testcafe:ci:${{ matrix.component }} | ||
|
||
site: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
name: Site | ||
steps: | ||
- name: Get sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Prepare yarn | ||
run: | | ||
sudo npm i -g [email protected] --force | ||
yarn --no-progress | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: devextreme-reactive-artifacts | ||
|
||
- name: Unpack artifacts | ||
run: 7z x -y artifacts.zip | ||
|
||
- name: Site | ||
run: yarn build:site:docs |
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
{ | ||
"browsers": ["chrome:headless --disable-features=VizDisplayCompositor"], | ||
"src": "./**/*.testcafe.js", | ||
"reporter": [ | ||
"spec", | ||
{ | ||
"name": "xunit", | ||
"output": "/tmp/testcafe-test-results/res.xml" | ||
} | ||
], | ||
"skipJsErrors" : true | ||
"browsers": [ | ||
"chrome:headless --disable-features=VizDisplayCompositor" | ||
], | ||
"src": "./**/*.testcafe.js", | ||
"reporter": [ | ||
"spec", | ||
{ | ||
"name": "xunit", | ||
"output": "/tmp/testcafe-test-results/res.xml" | ||
} | ||
], | ||
"quarantineMode": { | ||
"successThreshold": 1, | ||
"attemptLimit": 3 | ||
}, | ||
"skipJsErrors": true | ||
} |
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