@@ -4,58 +4,52 @@ name: Unit Tests
4
4
on : pull_request
5
5
6
6
jobs :
7
- unit-tests-p2 :
8
- name : Polymer 2 on the CI agent
9
- runs-on : ubuntu-latest
10
- steps :
11
- - name : Set up Node 12.x
12
- uses : actions/setup-node@v4
13
- with :
14
- node-version : 12.x
15
-
16
- - name : Check out the source code
17
- uses : actions/checkout@v4
18
-
19
- - name : Install latest npm
20
- # magi-cli 1.0 requires npm 7 or higher
21
- run : " npm install -g npm@8"
22
-
23
- - name : Install global npm dependencies
24
- # bower is needed to run 'bower install'
25
- # polymer-cli is needed to run the lint step
26
- run : " npm install --quiet --no-progress --global bower polymer-cli"
27
-
28
- - name : Install project npm dependencies
29
- run : " npm ci"
30
-
31
- - name : Install project Bower dependencies
32
- run : " bower install --quiet"
33
-
34
- - name : Run automated magi-cli checks
35
- run : " npm run check"
36
-
37
- - name : Run a linter
38
- run : " npm run lint"
39
-
40
- # the full set of environments is tested with Polymer 3 below
41
- - name : Run unit tests locally (in the VM instance running this job)
42
- run : " xvfb-run -s '-screen 0 1024x768x24' npm test"
7
+ # Running local tests is disabled due to outdated dependencies
8
+ # see https://github.com/vaadin/components-team-tasks/issues/628
9
+ # unit-tests-p2:
10
+ # name: Polymer 2 on the CI agent
11
+ # runs-on: ubuntu-latest
12
+ # steps:
13
+ # - name: Set up Node 16.x
14
+ # uses: actions/setup-node@v4
15
+ # with:
16
+ # node-version: 16.x
17
+ #
18
+ # - name: Check out the source code
19
+ # uses: actions/checkout@v2
20
+ #
21
+ # - name: Install global npm dependencies
22
+ # # bower is needed to run 'bower install'
23
+ # # polymer-cli is needed to run the lint step
24
+ # run: "npm install --quiet --no-progress --global bower polymer-cli"
25
+ #
26
+ # - name: Install project npm dependencies
27
+ # run: "npm ci"
28
+ #
29
+ # - name: Install project Bower dependencies
30
+ # run: "bower install --quiet"
31
+ #
32
+ # - name: Run automated magi-cli checks
33
+ # run: "npm run check"
34
+ #
35
+ # - name: Run a linter
36
+ # run: "npm run lint"
37
+ #
38
+ # # the full set of environments is tested with Polymer 3 below
39
+ # - name: Run unit tests locally (in the VM instance running this job)
40
+ # run: "xvfb-run -s '-screen 0 1024x768x24' npm test"
43
41
44
42
unit-tests-p3 :
45
43
name : Polymer 3 on SauceLabs
46
44
runs-on : ubuntu-latest
47
45
steps :
48
- - name : Set up Node 12 .x
46
+ - name : Set up Node 16 .x
49
47
uses : actions/setup-node@v4
50
48
with :
51
- node-version : 12 .x
49
+ node-version : 16 .x
52
50
53
51
- name : Check out the (Polymer 2) source code
54
- uses : actions/checkout@v4
55
-
56
- - name : Install latest npm
57
- # magi-cli 1.0 requires npm 7 or higher
58
- run : " npm install -g npm@8"
52
+ uses : actions/checkout@v2
59
53
60
54
- name : Install global npm dependencies
61
55
# bower and polymer-modulizer are needed to run the Polymer 3 conversion step
0 commit comments