-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
60 changed files
with
58,743 additions
and
184 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,9 @@ | ||
module.exports = { | ||
rules: { | ||
// no object literal shorthand syntax | ||
'object-shorthand': ['warn', 'never'], | ||
}, | ||
extends: [ | ||
'@nextcloud', | ||
], | ||
} |
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 |
---|---|---|
|
@@ -14,8 +14,25 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
path: ${{ env.APP_NAME }} | ||
|
||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
id: versions | ||
continue-on-error: false | ||
with: | ||
path: ${{ env.APP_NAME }} | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
- name: Set up npm ${{ steps.versions.outputs.npmVersion }} | ||
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" | ||
|
||
- name: Run build | ||
run: cd ${{ env.APP_NAME }} && make appstore | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -15,8 +15,25 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
path: ${{ env.APP_NAME }} | ||
|
||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
id: versions | ||
continue-on-error: false | ||
with: | ||
path: ${{ env.APP_NAME }} | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
- name: Set up npm ${{ steps.versions.outputs.npmVersion }} | ||
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" | ||
|
||
- name: Run build | ||
run: cd ${{ env.APP_NAME }} && make appstore | ||
|
||
- name: Upload app tarball to release | ||
uses: svenstaro/upload-release-action@v2 | ||
id: attach_to_release | ||
|
@@ -26,6 +43,7 @@ jobs: | |
asset_name: ${{ env.APP_NAME }}.tar.gz | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
|
||
- name: Upload app to Nextcloud appstore | ||
uses: R0Wi/nextcloud-appstore-push-action@v1 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -63,12 +63,28 @@ jobs: | |
./occ app:enable ${{ env.APP_NAME }} | ||
php -S localhost:8080 & | ||
- name: Run tests with coverage tracking | ||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
id: versions | ||
continue-on-error: false | ||
with: | ||
path: ./apps/${{ env.APP_NAME }} | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
- name: Set up npm ${{ steps.versions.outputs.npmVersion }} | ||
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" | ||
|
||
- name: Run PHP and JS tests with coverage tracking and merge results | ||
working-directory: apps/${{ env.APP_NAME }} | ||
run: make coverage | ||
run: make coverage-all | ||
|
||
- name: Upload coverage to Codecov | ||
working-directory: ./apps/${{ env.APP_NAME }} | ||
working-directory: ./apps/${{ env.APP_NAME }}/coverage | ||
run: | | ||
wget https://codecov.io/bash -O codecov.sh | ||
bash codecov.sh -t ${{ secrets.CODECOV_TOKEN }} -f coverage.xml -Z | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
./codecov -t ${{ secrets.CODECOV_TOKEN }} -Z |
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 |
---|---|---|
|
@@ -6,4 +6,6 @@ coverage_html | |
build | ||
.phpunit.result.cache | ||
*.cov | ||
coverage | ||
node_modules | ||
js | ||
coverage |
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,2 @@ | ||
# compiled vue templates | ||
js/ |
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
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
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
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.