-
Notifications
You must be signed in to change notification settings - Fork 135
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
Feature add frontend ci #58
Feature add frontend ci #58
Conversation
/assign @sanposhiho |
This should be after #7. I'll be back after that. |
web/package.json
Outdated
@@ -10,7 +10,7 @@ | |||
"format": "prettier --write .", | |||
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .", | |||
"lint:css": "stylelint \"**/**.{css,scss,sass}\"", | |||
"lint": "yarn lint:js lint:css", | |||
"lint": "yarn run lint:js && yarn run lint:css", |
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.
Could you please delete the changes on package.json from this PR? This issue will be solved in #7 as well.
c091db6
to
04c27eb
Compare
Thanks for comment. |
.github/workflows/lint-frontend.yml
Outdated
run: npm install -g yarn | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
- name: Test |
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.
- name: Test | |
- name: Lint |
.github/workflows/lint-frontend.yml
Outdated
- name: Setup Node.js v16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x |
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.
Does this really work? I cannot find the syntax 16.X
on the official readme of setup-node action.
https://github.com/marketplace/actions/setup-node-js-environment
node-version: 16.x | |
node-version: '16' |
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.
Yes, it works.
setup-node downloads from https://nodejs.org/dist
. And v16.x is released from that.
If you are worry, I change 16.x
to 16
.
FYI
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.
I see. But, yeah, please change it. Just to be safe in the future, let's go the way that the official suggests.
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.
I fixed it.
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.
Thanks :)
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sanposhiho, sivchari The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
I added lint check of frontend on GitHub Actions.
Which issue(s) this PR fixes:
Related #5
Special notes for your reviewer:
/label tide/merge-method-squash