Skip to content

Commit

Permalink
ci: move CI to GitHub actions workflow (#3493)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrr3 authored Feb 1, 2022
1 parent 89bdc3c commit dffa27a
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 14 deletions.
91 changes: 88 additions & 3 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 16 additions & 10 deletions .testcaferc.json
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
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DevExtreme Reactive · [![CircleCI](https://img.shields.io/circleci/project/github/DevExpress/devextreme-reactive/master.svg)](https://circleci.com/gh/DevExpress/devextreme-reactive) [![NPM](https://img.shields.io/npm/v/@devexpress/dx-core.svg)](https://www.npmjs.com/package/@devexpress/dx-core)
# DevExtreme Reactive · [![Tests](https://github.com/DevExpress/devextreme-reactive/actions/workflows/ci_tests.yml/badge.svg)](https://github.com/DevExpress/devextreme-reactive/actions/workflows/ci_tests.yml) [![CircleCI](https://img.shields.io/circleci/project/github/DevExpress/devextreme-reactive/master.svg)](https://circleci.com/gh/DevExpress/devextreme-reactive) [![NPM](https://img.shields.io/npm/v/@devexpress/dx-core.svg)](https://www.npmjs.com/package/@devexpress/dx-core)

DevExtreme Reactive is a set of business React components that deeply integrate with Bootstrap and Material-UI libraries.

Expand Down

0 comments on commit dffa27a

Please sign in to comment.