forked from valor-software/ng2-file-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bump): updated versions (valor-software#1177)
* feat(upgrade): updated up to angular 11 tests are failed * chore(bump): updated versions * chore(bump): updated package * fix(style): delete extra rule * disabled ivy build, added prod config, changed demo serve script * feat(bump): added strict mode, doesn't build in dist, should be resolved * feat(core): added nx * feat(core): updated dependencies list * feat(github actions): check gh actions * feat(gh actions): try gh actions * feat(gh actions): try gh actions * feat(gh actions): try gh actions * feat(gh actions): try gh actions * feat(gh actions): try gh actions * feat(github actions): delete codecov * feat(firebase): try firebase actions * feat(firebase): try firebase actions * feat(firebase): try firebase actions * feat(firebase): try firebase actions * feat(firebase): try firebase actions * feat(strict): added strict mode * feat(github actions): updated yml file * fix(lint): fixed linting errors * fix(lint): fixed linting errors * fix(lint): fixed lint errors * Delete hosting.ZGlzdC9hcHBzL2RlbW8.cache * feat(github actions): added publish action * fix(firebase): test extra folder https Co-authored-by: Mishchenko Dmitriy <[email protected]> Co-authored-by: Dmitriy Shekhovtsov <[email protected]>
- Loading branch information
1 parent
8171bc8
commit be27edb
Showing
80 changed files
with
24,789 additions
and
14,068 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": [ | ||
"**/*" | ||
], | ||
"plugins": [ | ||
"@nrwl/nx" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.ts", | ||
"*.tsx", | ||
"*.js", | ||
"*.jsx" | ||
], | ||
"rules": { | ||
"@nrwl/nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.ts", | ||
"*.tsx" | ||
], | ||
"extends": [ | ||
"plugin:@nrwl/nx/typescript" | ||
], | ||
"parserOptions": { "project": "./tsconfig.*?.json" }, | ||
"rules": { | ||
"semi": "off", | ||
"@typescript-eslint/semi": ["error"] | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.js", | ||
"*.jsx" | ||
], | ||
"extends": [ | ||
"plugin:@nrwl/nx/javascript" | ||
], | ||
"rules": {} | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "ngx-file-upload" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: on-release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
env: | ||
NX_BRANCH: ${{ github.event.number }} | ||
NX_RUN_GROUP: ${{ github.run_id }} | ||
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} | ||
MOZ_HEADLESS: 1 | ||
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
# one run | ||
one_run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# install dependencies | ||
install: | ||
runs-on: ubuntu-latest | ||
needs: one_run | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
id: cache | ||
with: | ||
path: node_modules | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm ci | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
# build ng2-file-upload | ||
build: | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: node_modules | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
dist | ||
key: dist-${{ github.run_id }} | ||
- run: npx ng build --prod | ||
|
||
# update release notes in github | ||
update_release_draft: | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: node_modules | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npx conventional-github-releaser -p angular | ||
|
||
# update gh_pages | ||
gh_pages_deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
ref: 'gh-pages' | ||
path: 'gh-pages' | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
path: node_modules | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
dist | ||
key: dist-${{ github.run_id }} | ||
- run: | | ||
cd gh-pages | ||
git config user.email gh-actions-${GITHUB_ACTOR}@github.com | ||
git config user.name $GITHUB_ACTOR | ||
git add -A | ||
git commit -am "ci: gh-pages update" | ||
continue-on-error: true | ||
- name: push to gh-pages | ||
uses: ad-m/[email protected] | ||
continue-on-error: true | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: 'gh-pages' | ||
directory: 'gh-pages' | ||
|
||
# publish to npm | ||
npm_publish: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: node_modules | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
dist | ||
key: dist-${{ github.run_id }} | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
package: "dist/libs/ng2-file-upload/package.json" | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
name: on-pull-request-or-push | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- development | ||
|
||
env: | ||
NX_BRANCH: ${{ github.event.number }} | ||
NX_RUN_GROUP: ${{ github.run_id }} | ||
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} | ||
MOZ_HEALESS: 1 | ||
SAUCE_USERNAME_PR: valorkinpr | ||
FIREBASE_CHANNEL: ${{ fromJSON('["", "live"]')[!github.base_ref] }} | ||
|
||
CACHE_NODE_MODULES_PATH: | | ||
~/.npm | ||
node_modules | ||
CACHE_DIST_PATH: | | ||
dist | ||
jobs: | ||
# one run | ||
one_run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# install dependencies | ||
install: | ||
runs-on: ubuntu-latest | ||
needs: one_run | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
id: cache | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm ci | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
# build ng2-file-upload | ||
build: | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/[email protected] | ||
with: | ||
path: ${{ env.CACHE_DIST_PATH }} | ||
key: dist-${{ github.run_id }} | ||
- run: npx ng build --prod | ||
|
||
# run unit tests | ||
unit_tests_with_coverage: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_DIST_PATH }} | ||
key: dist-${{ github.run_id }} | ||
- run: npm run test-coverage | ||
continue-on-error: true | ||
|
||
# run linting | ||
linting: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: node_modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm run lint | ||
|
||
# firebase preview | ||
build_and_preview: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
outputs: | ||
output_url: ${{ steps.firebase_hosting_preview.outputs.details_url }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_DIST_PATH }} | ||
key: dist-${{ github.run_id }} | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
continue-on-error: true | ||
id: firebase_hosting_preview | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NGX_FILE_UPLOAD }}' | ||
projectId: ngx-file-upload | ||
channelId: ${{ env.FIREBASE_CHANNEL }} | ||
expires: 7d |
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
Oops, something went wrong.