Skip to content

feat: support angular 17 #92

feat: support angular 17

feat: support angular 17 #92

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: ngx-multiple-dates
path: dist/ngx-multiple-dates
build-app:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- uses: actions/download-artifact@v3
with:
name: ngx-multiple-dates
path: dist/ngx-multiple-dates
- run: npm ci
- run: npm run build:app
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- uses: actions/download-artifact@v3
with:
name: ngx-multiple-dates
path: dist/ngx-multiple-dates
- run: npm ci
- run: npm run test:ci
- uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage/ngx-multiple-dates/cobertura-coverage.xml
- uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage/ngx-multiple-dates-app/cobertura-coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/ngx-multiple-dates/cobertura-coverage.xml,./coverage/ngx-multiple-dates-app/cobertura-coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
lint:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- uses: actions/download-artifact@v3
with:
name: ngx-multiple-dates
path: dist/ngx-multiple-dates
- run: npm ci
- run: npm run lint