feat: remove lodash (#8) #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
build: | |
name: Build NgxForm | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.1 ] | |
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 NgxForm | |
run: npm run build:ngx-form | |
env: | |
CI: true | |
- name: Archive build artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: ngx-form-build | |
path: ./dist/ngx-form | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.1 ] | |
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: Run Linter | |
run: npm run lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.1 ] | |
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: Run Tests | |
run: npm run test:ci | |
- name: Archive Coverage Artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: ngx-form-coverage | |
path: ./coverage | |
coverall: | |
name: Coverall | |
needs: test | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
strategy: | |
matrix: | |
node-version: [ 18.19.1 ] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Download Coverage Artifact | |
uses: actions/download-artifact@master | |
with: | |
name: ngx-form-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/ngx-form/lcov.info | |
deploy_paddls: | |
name: Deploy NgxForm @paddls | |
needs: [ build, lint, test ] | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.1 ] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Download Build Artifact | |
uses: actions/download-artifact@master | |
with: | |
name: ngx-form-build | |
path: ./dist/ngx-form | |
- name: "Publish @paddls/ngx-form" | |
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-form" | |
publish_args: "--access public" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }} | |
deploy_witty: | |
name: Deploy NgxForm @witty-services | |
needs: [ build, lint, test ] | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.1 ] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Download Build Artifact | |
uses: actions/download-artifact@master | |
with: | |
name: ngx-form-build | |
path: ./dist/ngx-form | |
- name: "PrePublish @witty-services/ngx-form" | |
uses: jossef/action-set-json-field@v1 | |
with: | |
file: "./dist/ngx-form/package.json" | |
field: name | |
value: "@witty-services/ngx-form" | |
- name: "Publish @witty-services/ngx-form" | |
uses: pascalgn/npm-publish-action@1.3.9 | |
with: | |
commit_pattern: "^release: v(\\S+)" | |
workspace: "./dist/ngx-form" | |
publish_args: "--access public" | |
create_tag: "false" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }} |