Skip to content

Commit

Permalink
Fixing CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 11, 2024
1 parent 98a4458 commit 905f707
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 67 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,19 @@ jobs:
publish-config:
runs-on: ubuntu-20.04

strategy:
matrix:
node: [20.x] # This should be LTS

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch the history, or this action won't work

- name: Use Node.js ${{ matrix.node }}
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: 20.x

- name: Install dependencies
run: npm ci -f
- name: Install Dependencies
run: npm run install-monorepo

- name: 'Build backend'
run: npm run build:backend -w packages/admin
Expand Down
67 changes: 8 additions & 59 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,21 @@ jobs:
with:
node-version: 20.x

- name: 'Install'
run: npm i -f

- name: 'Install Adapter'
run: npm i -w packages/admin -f

- name: 'Install FE'
run: |
cd packages/admin/src-admin
npm i -f
- name: 'Lint Backend'
run: npm run lint-backend -w packages/admin
- name: Install Dependencies
run: npm run install-monorepo

- name: 'Build backend'
run: npm run build:backend -w packages/admin

- name: 'Build adapter-react-v5'
run: npm run build -w packages/adapter-react-v5

- name: 'Build JsonConfig'
run: npm run build -w packages/jsonConfig

- name: 'Build dm-gui-components'
run: npm run build -w packages/dm-gui-components

- name: Check TypeScript files
run: |
cd packages/admin/src-admin
npm run check-ts
# Wait till js-controller 7 types are available
continue-on-error: true

- name: 'Build'
run: |
npm run clean
NODE_OPTIONS=--max_old_space_size=4096 npm run build
- name: Build
run: NODE_OPTIONS=--max_old_space_size=8192 npm run build

# Runs adapter tests on all supported node versions and OSes
adapter-tests:
Expand Down Expand Up @@ -110,43 +88,14 @@ jobs:
with:
node-version: 20.x

- name: 'Install'
run: npm i -f

- name: 'Install Adapter'
run: npm i -w packages/admin -f

- name: 'Install FE'
run: |
cd packages/admin/src-admin
npm i -f
- name: 'Lint Backend'
run: npm run lint-backend -w packages/admin
- name: Install Dependencies
run: npm run install-monorepo

- name: 'Build backend'
run: npm run build:backend -w packages/admin

- name: 'Build adapter-react-v5'
run: npm run build -w packages/adapter-react-v5

- name: 'Build JsonConfig'
run: npm run build -w packages/jsonConfig

- name: 'Build dm-gui-components'
run: npm run build -w packages/dm-gui-components

- name: Check TypeScript files
run: |
cd packages/admin/src-admin
npm run check-ts
# Wait till js-controller 7 types are available
continue-on-error: true

- name: 'Build'
run: |
npm run clean
NODE_OPTIONS=--max_old_space_size=4096 npm run build
- name: Build
run: NODE_OPTIONS=--max_old_space_size=8192 npm run build

- name: Run GUI tests
run: npm run test:gui -w packages/admin/
Expand Down

0 comments on commit 905f707

Please sign in to comment.