Skip to content

feat: support angular 18 #108

feat: support angular 18

feat: support angular 18 #108

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@v4
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@v4
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@v4
with:
name: ngx-multiple-dates
path: dist/ngx-multiple-dates
- run: npm ci
- run: npm run test:ci
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/ngx-multiple-dates/cobertura-coverage.xml
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/ngx-multiple-dates-app/cobertura-coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
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
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
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@v4
with:
name: ngx-multiple-dates
path: dist/ngx-multiple-dates
- run: npm ci
- run: npm run lint