Skip to content

feat: add provide method #407

feat: add provide method

feat: add provide method #407

name: build
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Linter
run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Test
run: npm run test:ci
- name: Archive coverage artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ngx-repository-coverage
path: ./coverage
coverall:
name: Coverall
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-repository-coverage
path: ./coverage
- name: Send coverage to Coverall
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/merged/lcov.info
build-ngx-repository:
name: Build ngx-repository
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Build NgxRepository
run: npm run build:ngx-repository
env:
CI: true
- name: Archive artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ngx-repository
path: ./dist/ngx-repository
build-ngx-http-repository:
name: Build ngx-http-repository
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Build NgxHttpRepository
run: npm run build:ngx-http-repository
env:
CI: true
- name: Archive artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ngx-http-repository
path: ./dist/ngx-http-repository
build-ngx-firestore-repository:
name: Build ngx-firestore-repository
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Build NgxFirestoreRepository
run: npm run build:ngx-firestore-repository
env:
CI: true
- name: Archive artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ngx-firestore-repository
path: ./dist/ngx-firestore-repository
deploy-ngx-repository:
name: Deploy ngx-repository
runs-on: ubuntu-latest
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-repository
path: ./dist/ngx-repository
- name: "Publish @paddls/ngx-repository"
uses: pascalgn/npm-publish-action@1.3.9
with:
tag_name: "v%s"
tag_message: "v%s"
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-repository"
publish_args: "--access public"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
deploy-witty-ngx-repository:
name: Deploy witty ngx-repository
runs-on: ubuntu-latest
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-repository
path: ./dist/ngx-repository
- name: "PrePublish @witty-services/ngx-repository"
uses: jossef/action-set-json-field@v1
with:
file: "./dist/ngx-repository/package.json"
field: name
value: "@witty-services/ngx-repository"
- name: "Publish @witty-services/ngx-repository"
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-repository"
publish_args: "--access public"
create_tag: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
deploy-ngx-http-repository:
name: Deploy ngx-http-repository
runs-on: ubuntu-latest
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-http-repository
path: ./dist/ngx-http-repository
- name: "Publish @paddls/ngx-http-repository"
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-http-repository"
publish_args: "--access public"
create_tag: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
deploy-witty-ngx-http-repository:
name: Deploy witty ngx-http-repository
runs-on: ubuntu-latest
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-http-repository
path: ./dist/ngx-http-repository
- name: "PrePublish @witty-services/ngx-http-repository"
uses: jossef/action-set-json-field@v1
with:
file: "./dist/ngx-http-repository/package.json"
field: name
value: "@witty-services/ngx-http-repository"
- name: "Publish @witty-services/ngx-http-repository"
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-http-repository"
publish_args: "--access public"
create_tag: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
deploy-ngx-firestore-repository:
name: Deploy ngx-firestore-repository
runs-on: ubuntu-latest
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-firestore-repository
path: ./dist/ngx-firestore-repository
- name: "Publish @paddls/ngx-firestore-repository"
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-firestore-repository"
publish_args: "--access public"
create_tag: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
deploy-witty-ngx-firestore-repository:
name: Deploy witty ngx-firestore-repository
runs-on: ubuntu-latest
needs: [ test, lint, build-ngx-repository, build-ngx-http-repository, build-ngx-firestore-repository ]
if: github.ref == 'refs/heads/master'
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-firestore-repository
path: ./dist/ngx-firestore-repository
- name: "PrePublish @witty-services/ngx-firestore-repository"
uses: jossef/action-set-json-field@v1
with:
file: "./dist/ngx-firestore-repository/package.json"
field: name
value: "@witty-services/ngx-firestore-repository"
- name: "Publish @witty-services/ngx-firestore-repository"
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-firestore-repository"
publish_args: "--access public"
create_tag: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}