-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(infra): only lint staged files #153
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ad4df10
chore(infra): only lint staged files
petermuessig 98e10a0
chore: some more prettier, lint-staged cleanup
petermuessig f8530a0
chore: adopt package.json
petermuessig 74b0f28
chore: update dependencies
petermuessig 328ad71
chore: move lint:staged to pre-commit phase
petermuessig 053b9f5
chore: move prettier to project root
petermuessig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,42 +1,42 @@ | ||
name: build | ||
|
||
on: | ||
schedule: | ||
- cron: "50 3 * * *" # runs every day at 03:50 UTC to avoid high loads | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "50 3 * * *" # runs every day at 03:50 UTC to avoid high loads | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js LTS (16.x) | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- name: install yarn | ||
run: | | ||
npm install yarn --global | ||
- name: yarn | ||
run: | | ||
yarn | ||
- name: crawl data | ||
run: | | ||
yarn workspace crawler fetch | ||
- run: | | ||
yarn workspace ui build | ||
- name: Commit/Push build to docs branch | ||
run: | | ||
git config --global user.name 'marianfoo' | ||
git config --global user.email '[email protected]' | ||
git add docs -f | ||
git add packages/ui/src/model/data.json | ||
git add packages/ui/src/model/versions.json | ||
git commit -m "chore: build" | ||
git push origin HEAD:docs --force | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js LTS (16.x) | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- name: install yarn | ||
run: | | ||
npm install yarn --global | ||
- name: yarn | ||
run: | | ||
yarn | ||
- name: crawl data | ||
run: | | ||
yarn workspace crawler build | ||
- run: | | ||
yarn workspace ui build | ||
- name: Commit/Push build to docs branch | ||
run: | | ||
git config --global user.name 'marianfoo' | ||
git config --global user.email '[email protected]' | ||
git add docs -f | ||
git add packages/ui/src/model/data.json | ||
git add packages/ui/src/model/versions.json | ||
git commit -m "chore: build" | ||
git push origin HEAD:docs --force |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ node_modules/ | |
webapp | ||
dist | ||
docs | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
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,5 +1,11 @@ | ||
build | ||
docs | ||
*.html | ||
*.properties | ||
packages/ui/src/resources/font-awesome | ||
# Ignore specific files | ||
_config.yml | ||
|
||
# Ignore files by extension | ||
/**/*.md | ||
/**/*.svg | ||
|
||
# Ignore folders | ||
/docs/** | ||
/packages/ui/src/font-awesome/** | ||
/packages/ui/webapp/** |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
{ | ||
"singleQuote": false, | ||
"printWidth": 200, | ||
"endOfLine": "lf", | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"overrides": [ | ||
{ | ||
"files": ["*.yaml", "*.yml", "*.md", "*.json", "*.xml"], | ||
"options": { | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"xmlWhitespaceSensitivity": "ignore" | ||
} | ||
}, | ||
{ | ||
"files": ["*.properties"], | ||
"options": { | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"keySeparator": "=" | ||
} | ||
} | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"src/**/*": "eslint" | ||
} |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"src/**/*": "eslint" | ||
} |
This file was deleted.
Oops, something went wrong.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will run
pretty-quick --staged
for all workspacesit seems this is not divided by workspace and will just prettier all files, not just for ui/crawler
so the command with the same result is then executed twice here
the previous command was already ok