-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish directory and recursive settings unexpected behavior (#105)
* revert previous 2 commits * bug: when recursive set to false getChartDirs was returning a string instead of expected array. in addition prepCharts was reading srcPath and then iterating over it instead of iterating over whatever was copied to destPath. * bug: fix readdir to not use recursive option as it has unexpected behavior between environments --------- Co-authored-by: Rohit Khattar <[email protected]>
- Loading branch information
Showing
17 changed files
with
759 additions
and
674 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
interval: 'daily' | ||
- package-ecosystem: 'docker' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
interval: 'daily' | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' |
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
--- | ||
version: 1 | ||
labels: | ||
- label: "small" | ||
- label: 'small' | ||
size-below: 10 | ||
- label: "medium" | ||
- label: 'medium' | ||
size-above: 9 | ||
size-below: 200 | ||
- label: "large" | ||
- label: 'large' | ||
size-above: 200 | ||
- label: "documentation" | ||
- label: 'documentation' | ||
files: | ||
- ".+.md" | ||
- label: "config" | ||
- '.+.md' | ||
- label: 'config' | ||
files: | ||
- ".github" | ||
- ".autorc" | ||
- ".eslintrc" | ||
- ".eslintignore" | ||
- ".prettierrc" | ||
- ".prettierignore" | ||
- ".all-contributorsrc" | ||
- "environments" | ||
- ".gitignore" | ||
- "Dockerfile" | ||
- "docker-compose.yml" | ||
- "package.json" | ||
- ".dockerignore" | ||
- ".gitignore" | ||
- label: "code" | ||
- '.github' | ||
- '.autorc' | ||
- '.eslintrc' | ||
- '.eslintignore' | ||
- '.prettierrc' | ||
- '.prettierignore' | ||
- '.all-contributorsrc' | ||
- 'environments' | ||
- '.gitignore' | ||
- 'Dockerfile' | ||
- 'docker-compose.yml' | ||
- 'package.json' | ||
- '.dockerignore' | ||
- '.gitignore' | ||
- label: 'code' | ||
files: | ||
- "src" | ||
- 'src' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,16 @@ name: Code Review | |
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches: | ||
- '!next' | ||
branches-ignore: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.head_ref }}-pr | ||
cancel-in-progress: true | ||
|
||
env: | ||
NODE_VERSION: '18' | ||
|
||
jobs: | ||
init: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,7 +25,7 @@ jobs: | |
key: modules-${{ hashFiles('package-lock.json') }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: ${{ env.NODE_VERSION }} | ||
- if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
|
@@ -40,7 +43,7 @@ jobs: | |
key: modules-${{ hashFiles('package-lock.json') }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: ${{ env.NODE_VERSION }} | ||
- uses: fossas/fossa-action@main | ||
with: | ||
api-key: ${{ secrets.FOSSA_API_KEY }} | ||
|
@@ -51,9 +54,9 @@ jobs: | |
prettier: true | ||
prettier_extensions: ts,json,js,yml | ||
auto_fix: true | ||
commit_message: "chore(lint): Fix code style issues with ${linter}" | ||
commit_message: 'chore(lint): Fix code style issues with ${linter}' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
git_email: "[email protected]" | ||
git_email: '[email protected]' | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -69,7 +72,7 @@ jobs: | |
key: modules-${{ hashFiles('package-lock.json') }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: ${{ env.NODE_VERSION }} | ||
- run: npm run ci:build | ||
- env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -89,7 +92,7 @@ jobs: | |
key: modules-${{ hashFiles('package-lock.json') }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: ${{ env.NODE_VERSION }} | ||
- if: ${{ github.actor != 'dependabot[bot]' }} | ||
uses: paambaati/[email protected] | ||
env: | ||
|
@@ -103,7 +106,7 @@ jobs: | |
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
needs: [init] | ||
timeout-minutes: 3 | ||
permissions: write-all | ||
env: | ||
|
@@ -118,8 +121,8 @@ jobs: | |
- 8080:8080 | ||
env: | ||
DEBUG: 1 | ||
STORAGE: "local" | ||
STORAGE_LOCAL_ROOTDIR: "/tmp/charts" | ||
STORAGE: 'local' | ||
STORAGE_LOCAL_ROOTDIR: '/tmp/charts' | ||
PORT: 8080 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -131,7 +134,7 @@ jobs: | |
key: modules-${{ hashFiles('package-lock.json') }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: ${{ env.NODE_VERSION }} | ||
# e2e dependencies | ||
- name: Setup Helm | ||
uses: azure/setup-helm@v3 | ||
|
@@ -147,7 +150,7 @@ jobs: | |
- env: | ||
HELM_PLUGIN_ENABLE_CANARY: true | ||
HELM_PLUGIN_PUSH: true | ||
HELM_PLUGIN_REPOSITORY: "@local" | ||
HELM_PLUGIN_REPOSITORY: '@local' | ||
HELM_PLUGIN_PUBLISH_REPOSITORY: local | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npm run ci:test:e2e |
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 |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
|
||
permissions: write-all | ||
|
||
env: | ||
NODE_VERSION: '18' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
@@ -19,12 +22,12 @@ jobs: | |
token: ${{ secrets.GH_TOKEN }} | ||
- uses: oleksiyrudenko/[email protected] | ||
with: | ||
token: "${{ secrets.GH_TOKEN }}" | ||
token: '${{ secrets.GH_TOKEN }}' | ||
- name: Prepare repository | ||
run: git fetch --unshallow --tags | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"semi": false, | ||
"tabWidth": 2 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
version: "3" | ||
version: '3' | ||
|
||
services: | ||
chartmuseum: | ||
image: ghcr.io/helm/chartmuseum:v0.16.0 | ||
ports: | ||
- "8080:8080" | ||
- '8080:8080' | ||
environment: | ||
DEBUG: 1 | ||
STORAGE: "local" | ||
STORAGE_LOCAL_ROOTDIR: "/tmp/charts" | ||
STORAGE: 'local' | ||
STORAGE_LOCAL_ROOTDIR: '/tmp/charts' | ||
#volumes: | ||
# - './charts:/charts' |
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.