summaryrefslogtreecommitdiff
path: root/.zuul.d/nodejs-jobs.yaml
blob: a9d22f519d016ec9c895c26675ef2b428512a31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- job:
    name: horizon-nodejs18-run-lint
    parent: nodejs-run-lint
    description: |
      Run lint using Node 18 for horizon plugins.
    vars:
      node_version: 18
      tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
    nodeset: ubuntu-focal
    pre-run: playbooks/horizon-nodejs/pre.yaml
    required-projects:
      - openstack/horizon
      - openstack/requirements

- job:
    name: horizon-nodejs18-run-test
    parent: nodejs-run-test-browser
    description: |
      Run test using Node 18 for horizon plugins.
    vars:
      node_version: 18
      tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
    pre-run: playbooks/horizon-nodejs/pre.yaml
    nodeset: ubuntu-focal
    required-projects:
      - openstack/horizon
      - openstack/requirements

- project-template:
    name: horizon-nodejs-jobs
    description: |
      This project template is defined to run lint and test jobs using
      Node LTS version (i.e. 18 now) for horizon plugins. horizon plugins
      can use this template to run nodejs jobs. So if we want to update
      nodejs version in horizon plugins we can update this template to use
      the job with the latest node version and not many changes are required
      in the horizon plugins side.
    check:
      jobs:
        - horizon-nodejs18-run-lint
        - horizon-nodejs18-run-test
    gate:
      jobs:
        - horizon-nodejs18-run-lint
        - horizon-nodejs18-run-test