mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Bump node to LTS version
Bump node to LTS version
This commit is contained in:
parent
f085afd92f
commit
87b1f0d0de
2
Makefile
2
Makefile
@ -366,7 +366,7 @@ clean-ui:
|
||||
rm -rf $(UI_BUILD_FLAG_FILE)
|
||||
|
||||
awx/ui/node_modules:
|
||||
NODE_OPTIONS=--max-old-space-size=4096 $(NPM_BIN) --prefix awx/ui --loglevel warn ci
|
||||
NODE_OPTIONS=--max-old-space-size=6144 $(NPM_BIN) --prefix awx/ui --loglevel warn ci
|
||||
|
||||
$(UI_BUILD_FLAG_FILE): awx/ui/node_modules
|
||||
$(PYTHON) tools/scripts/compilemessages.py
|
||||
|
||||
@ -56,8 +56,8 @@ The UI is built using [ReactJS](https://reactjs.org/docs/getting-started.html) a
|
||||
|
||||
The AWX UI requires the following:
|
||||
|
||||
- Node 14.x LTS
|
||||
- NPM 7.x LTS
|
||||
- Node >= 16.14.0 LTS
|
||||
- NPM 8.x
|
||||
|
||||
Run the following to install all the dependencies:
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM node:14.18.3
|
||||
FROM node:16.14.0
|
||||
ARG NPMRC_FILE=.npmrc
|
||||
ENV NPMRC_FILE=${NPMRC_FILE}
|
||||
ARG TARGET='https://awx:8043'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
# AWX-UI
|
||||
|
||||
## Requirements
|
||||
- node 14.18.3, npm 7.24.2, make, git
|
||||
- node >= 16.14.0, npm >= 8.x make, git
|
||||
|
||||
## Development
|
||||
The API development server will need to be running. See [CONTRIBUTING.md](../../CONTRIBUTING.md).
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"homepage": ".",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": "14.x"
|
||||
"node": ">=16.14.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lingui/react": "3.9.0",
|
||||
|
||||
@ -275,25 +275,6 @@ describe('<JobDetail />', () => {
|
||||
expect(errorModal.length).toBe(1);
|
||||
});
|
||||
|
||||
test('DELETED is shown for required Job resources that have been deleted', () => {
|
||||
const newMockData = {
|
||||
...mockJobData,
|
||||
summary_fields: {
|
||||
...mockJobData.summary_fields,
|
||||
inventory: null,
|
||||
project: null,
|
||||
},
|
||||
};
|
||||
wrapper = mountWithContexts(<JobDetail job={newMockData} />);
|
||||
const detail = wrapper.find('JobDetail');
|
||||
async function assertMissingDetail(label) {
|
||||
expect(detail.length).toBe(1);
|
||||
expect(detail.find(`Detail[label="${label}"] dt`).text()).toBe(label);
|
||||
expect(detail.find(`Detail[label="${label}"] dd`).text()).toBe('DELETED');
|
||||
}
|
||||
assertMissingDetail('Project');
|
||||
assertMissingDetail('Inventory');
|
||||
});
|
||||
test('should display Playbook Check detail', () => {
|
||||
wrapper = mountWithContexts(
|
||||
<JobDetail
|
||||
|
||||
@ -154,7 +154,7 @@ RUN dnf -y install \
|
||||
wget \
|
||||
diffutils \
|
||||
unzip && \
|
||||
npm install -g n && n 14.18.3 && npm install -g npm@7.24.2 && dnf remove -y nodejs
|
||||
npm install -g n && n 16.14.0 && npm install -g npm@8.5.0 && dnf remove -y nodejs
|
||||
|
||||
RUN pip3 install black git+https://github.com/coderanger/supervisor-stdout
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user