Skip to content

Commit 38a641d

Browse files
authored
feat: Upgrade to angular 16 (#995)
BREAKING CHANGE: requires angular >= 16
1 parent c8074d6 commit 38a641d

File tree

15 files changed

+2899
-1408
lines changed

15 files changed

+2899
-1408
lines changed

.circleci/config.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
coverage:
22
range: "50..100"
33
status:
4-
project: no
5-
patch: no
4+
project: false
5+
patch: false
66
comment:
7-
require_changes: yes
7+
require_changes: true
88
behavior: once

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 20
17+
cache: 'npm'
18+
- run: npm ci
19+
- name: lint
20+
run: npm run lint
21+
- run: npm run build
22+
- name: test
23+
run: npm run test:ci
24+
- name: coverage
25+
uses: codecov/codecov-action@v3
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}
28+
29+
publish:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
if: github.ref_name == 'master'
33+
permissions:
34+
contents: write # to be able to publish a GitHub release
35+
issues: write # to be able to comment on released issues
36+
pull-requests: write # to be able to comment on released pull requests
37+
id-token: write # to enable use of OIDC for npm provenance
38+
steps:
39+
- uses: actions/checkout@v3
40+
- uses: actions/setup-node@v3
41+
with:
42+
node-version: 20
43+
cache: 'npm'
44+
- run: npm ci
45+
- run: npm run build
46+
- name: release
47+
run: cd dist && npx semantic-release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
20

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<a href="https://www.npmjs.org/package/ngx-toastr">
77
<img src="https://badge.fury.io/js/ngx-toastr.svg" alt="npm">
88
</a>
9-
<a href="https://circleci.com/gh/scttcper/ngx-toastr">
10-
<img src="https://circleci.com/gh/scttcper/ngx-toastr.svg?style=svg" alt="circleci">
11-
</a>
129
<a href="https://codecov.io/github/scttcper/ngx-toastr">
1310
<img src="https://img.shields.io/codecov/c/github/scttcper/ngx-toastr.svg" alt="codecov">
1411
</a>
@@ -40,7 +37,8 @@ Latest version available for each version of Angular
4037
| 13.2.1 | 10.x 11.x |
4138
| 14.3.0 | 12.x 13.x |
4239
| 15.2.2 | 14.x. |
43-
| current | >= 15.x |
40+
| 16.2.0 | 15.x |
41+
| current | >= 16.x |
4442

4543
## Install
4644

karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ module.exports = function (config) {
2727
autoWatch: true,
2828
browsers: ['Chrome'],
2929
customLaunchers: {
30-
ChromeCI: {
31-
base: `${process.env['TRAVIS'] ? 'ChromeHeadless' : 'Chrome'}`,
32-
flags: process.env['TRAVIS'] ? ['--no-sandbox'] : [],
30+
ChromeHeadlessCustom: {
31+
base: 'ChromeHeadless',
32+
flags: ['--no-sandbox', '--disable-gpu'],
3333
},
3434
},
3535
singleRun: false,

0 commit comments

Comments
 (0)