Skip to content

Commit

Permalink
feat: Upgrade to angular 16 (scttcper#995)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires angular >= 16
  • Loading branch information
scttcper authored May 14, 2023
1 parent c8074d6 commit 38a641d
Show file tree
Hide file tree
Showing 15 changed files with 2,899 additions and 1,408 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
coverage:
range: "50..100"
status:
project: no
patch: no
project: false
patch: false
comment:
require_changes: yes
require_changes: true
behavior: once
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- name: lint
run: npm run lint
- run: npm run build
- name: test
run: npm run test:ci
- name: coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

publish:
needs: build
runs-on: ubuntu-latest
if: github.ref_name == 'master'
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- name: release
run: cd dist && npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<a href="https://www.npmjs.org/package/ngx-toastr">
<img src="https://badge.fury.io/js/ngx-toastr.svg" alt="npm">
</a>
<a href="https://circleci.com/gh/scttcper/ngx-toastr">
<img src="https://circleci.com/gh/scttcper/ngx-toastr.svg?style=svg" alt="circleci">
</a>
<a href="https://codecov.io/github/scttcper/ngx-toastr">
<img src="https://img.shields.io/codecov/c/github/scttcper/ngx-toastr.svg" alt="codecov">
</a>
Expand Down Expand Up @@ -40,7 +37,8 @@ Latest version available for each version of Angular
| 13.2.1 | 10.x 11.x |
| 14.3.0 | 12.x 13.x |
| 15.2.2 | 14.x. |
| current | >= 15.x |
| 16.2.0 | 15.x |
| current | >= 16.x |

## Install

Expand Down
6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ module.exports = function (config) {
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
ChromeCI: {
base: `${process.env['TRAVIS'] ? 'ChromeHeadless' : 'Chrome'}`,
flags: process.env['TRAVIS'] ? ['--no-sandbox'] : [],
ChromeHeadlessCustom: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-gpu'],
},
},
singleRun: false,
Expand Down
Loading

0 comments on commit 38a641d

Please sign in to comment.