Skip to content

Commit 4d6f714

Browse files
committed
CI fix (Ubuntu 22)
1 parent 9da8205 commit 4d6f714

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ on:
1414

1515
jobs:
1616
build:
17-
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
node-version: [16.x]
17+
runs-on: ubuntu-22.04
2118
steps:
2219
- name: Dispatched?
2320
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -26,12 +23,12 @@ jobs:
2623
echo "Build reason: ${{ github.event.inputs.cause }}"
2724
2825
- name: Checkout
29-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
3027

3128
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3330
with:
34-
node-version: ${{ matrix.node-version }}
31+
node-version: 20
3532

3633
- run: npm run ci:lib
3734
- run: npm run build:lib
@@ -40,14 +37,14 @@ jobs:
4037
- run: npm run ci:tests
4138
- run: npm test
4239

43-
- uses: actions/upload-artifact@master
40+
- uses: actions/upload-artifact@v4
4441
with:
4542
name: demo-dist
4643
path: dist/demo
4744

4845
deploy:
4946
needs: build
50-
runs-on: ubuntu-latest
47+
runs-on: ubuntu-22.04
5148
steps:
5249
- name: Set env BRANCH
5350
run: echo "BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)" >> $GITHUB_ENV
@@ -66,11 +63,11 @@ jobs:
6663

6764
- name: Checkout
6865
if: env.NEED == 'true'
69-
uses: actions/checkout@v3
66+
uses: actions/checkout@v4
7067

7168
- name: Download dist
7269
if: env.NEED == 'true'
73-
uses: actions/download-artifact@master
70+
uses: actions/download-artifact@v4
7471
with:
7572
name: demo-dist
7673
path: dist-demo-app
@@ -80,4 +77,4 @@ jobs:
8077
uses: JamesIves/github-pages-deploy-action@v4
8178
with:
8279
branch: gh-pages
83-
folder: dist-demo-app
80+
folder: dist-demo-app

demo/angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,8 @@
7474
}
7575
}
7676
}
77+
},
78+
"cli": {
79+
"analytics": false
7780
}
7881
}

tests/angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
}
2121
}
2222
}
23+
},
24+
"cli": {
25+
"analytics": false
2326
}
2427
}

0 commit comments

Comments
 (0)