Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Inter font #342

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
125 changes: 124 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,101 @@ jobs:
run: npm run test
working-directory: packages/metadata

build-latest-dx-npm:
if: ${{ github.base_ref == 'dev' }}
runs-on: ubuntu-latest
steps:
#Build Devextreme latest
- name: Checkout Devextreme
run: git clone https://github.com/DevExpress/DevExtreme.git devextreme

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18.16.1'

- name: Set NPM version
run: npm i npm@8 -g

- name: DevExtreme - Restore npm cache
uses: actions/cache@v3
with:
path: 'devextreme/**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('devextreme/**/package-lock.json') }}

- name: DevExtreme - Install packages
working-directory: devextreme
run: npm install --no-audit --no-fund

- name: DevExtreme - Build
working-directory: devextreme/packages/devextreme
run: npm run build-npm-devextreme

- name: DevExtreme - Pack
working-directory: devextreme/packages/devextreme/artifacts/npm/devextreme
run: npm pack

- name: DevExtreme dist - Pack
working-directory: devextreme/packages/devextreme/artifacts/npm/devextreme-dist
run: npm pack

- name: Upload devextreme Artifact
uses: actions/upload-artifact@v3
with:
retention-days: 1
name: devextreme-npm
path: |
devextreme/packages/devextreme/artifacts/npm/devextreme/devextreme-*.tgz
devextreme/packages/devextreme/artifacts/npm/devextreme-dist/devextreme-dist*.tgz
- name: DevExtreme-angular - Build
working-directory: devextreme/packages/devextreme-angular
run: npm run build

- name: DevExtreme-angular - Pack
working-directory: devextreme/packages/devextreme-angular
run: npm run pack

- name: Upload devextreme-angular Artifact
uses: actions/upload-artifact@v2
with:
retention-days: 1
name: devextreme-angular-npm
path: devextreme/packages/devextreme-angular/npm/dist/devextreme-angular*.tgz

- name: DevExtreme-react - Pack
working-directory: devextreme/packages/devextreme-react
run: npm run pack

- name: DevExtreme-react - Pack npm
working-directory: devextreme/packages/devextreme-react/npm
run: npm pack

- name: Upload devextreme-react Artifact
uses: actions/upload-artifact@v2
with:
retention-days: 1
name: devextreme-react-npm
path: devextreme/packages/devextreme-react/npm/devextreme-react*.tgz

- name: DevExtreme-vue - Pack
working-directory: devextreme/packages/devextreme-vue
run: npm run pack

- name: DevExtreme-vue - Pack npm
working-directory: devextreme/packages/devextreme-vue/npm
run: npm pack

- name: Upload devextreme-vue Artifact
uses: actions/upload-artifact@v2
with:
retention-days: 1
name: devextreme-vue-npm
path: devextreme/packages/devextreme-vue/npm/devextreme-vue*.tgz

testcafe:
name: ${{ matrix.ARGS.project }} - ${{ matrix.ARGS.page }} - ${{ matrix.theme.type }}
if: ${{ always() }}
needs: [build-latest-dx-npm]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -76,7 +169,7 @@ jobs:
{ project: 'vue', page: 'user-profile' },
]
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 40

steps:
- name: Get sources
Expand All @@ -89,6 +182,36 @@ jobs:

- name: Set NPM version
run: npm i npm@7 -g
- name: For dev branch - download devextreme Artifact
if: ${{ github.base_ref == 'dev' }}
uses: actions/download-artifact@v2
with:
name: devextreme-npm
path: devextreme-npm-latest

- name: For dev branch - download devextreme Artifact
if: ${{ github.base_ref == 'dev' }}
uses: actions/download-artifact@v2
with:
name: devextreme-npm
path: devextreme-npm-latest

- name: For dev branch - download devextreme-${{ matrix.ARGS.project }} Artifact
if: ${{ github.base_ref == 'dev' }}
uses: actions/download-artifact@v2
with:
name: devextreme-${{ matrix.ARGS.project }}-npm
path: devextreme-${{ matrix.ARGS.project }}-npm-latest

- name: For dev branch - replace dx versions to latest builds in package.json
if: ${{ github.base_ref == 'dev' }}
run: |
FILE_FRAMEWORK_PATH="$(find devextreme-${{ matrix.ARGS.project }}-npm-latest -maxdepth 1 -name "devextreme-${{ matrix.ARGS.project }}*.tgz" | sed 's|/|\\/|g')"
FILE_DX_PATH="$(find devextreme-npm-latest/devextreme/ -maxdepth 1 -name "devextreme-*.tgz" | sed 's|/|\\/|g')"
FILE_DX_DIST_PATH="$(find devextreme-npm-latest/devextreme-dist/ -maxdepth 1 -name "devextreme-dist*.tgz" | sed 's|/|\\/|g')"
sed -i "s|\"devextreme\": \"[0-9.]\+\"|\"devextreme\": \"\.\.\/\.\.\/$FILE_DX_PATH\"|g" ./packages/${{ matrix.ARGS.project }}/package.json
sed -i "s/\"devextreme-dist\": \"[0-9.]\+\"/\"devextreme-dist\": \"\.\.\/\.\.\/$FILE_DX_DIST_PATH\"/g" ./packages/${{ matrix.ARGS.project }}/package.json
sed -i "s|\"devextreme-${{ matrix.ARGS.project }}\": \"[0-9.]\+\"|\"devextreme-${{ matrix.ARGS.project }}\": \"\.\.\/\.\.\/$FILE_FRAMEWORK_PATH\"|g" ./packages/${{ matrix.ARGS.project }}/package.json

- name: Restore npm cache
uses: actions/cache@v3
Expand Down
Loading
Loading