Skip to content

Commit

Permalink
Update lint.yml (#83)
Browse files Browse the repository at this point in the history
* Update lint.yml

* moved eslint dir

* caching

* Update lint.yml

* installed typescript ?

* Update lint.yml

* Update lint.yml
  • Loading branch information
1tracy authored Aug 14, 2021
1 parent 8ef6aff commit 768557f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
SSH_IP: ${{ secrets.SSH_IP }}

- name: Deploy site
run: ssh my-vm 'cd ${{ secrets.PROJECT_DIR }} && git fetch && git reset --hard origin/master && docker-compose down && docker-compose up -d --build'
run: ssh my-vm 'cd ${{ secrets.PROJECT_DIR }} && git fetch && git reset --hard origin/main && docker-compose down && docker-compose up -d --build'

- name: Check deploy status
run: ssh my-vm 'cd ${{ secrets.PROJECT_DIR }} && docker-compose ps'

- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v2
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
cache: "npm"
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci
eslint_dir: /frontend/src/
run: npm install && npm i eslint && npm i typescript

- name: Run linters
uses: wearerequired/[email protected]
Expand All @@ -43,6 +44,7 @@ jobs:
flake8: true
black_dir: backend/app/
flake8_args: "backend/app/ --max-line-length=100"
eslint_dir: frontend/src/
eslint: true
prettier: true
stylelint: true
5 changes: 5 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.1",
"typescript": "^4.3.5",
"watchpack": "^2.2.0",
"web-vitals": "^0.2.4"
},
Expand Down
11 changes: 2 additions & 9 deletions frontend/src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,7 @@ function Home() {
<header>
<h3>Tracy Dong</h3>
</header>
<p>Tracy developed the front and back end for this project.
She is majoring in computer science at the University of Waterloo.
She was inspired to create this project due to the rising focus on mental health
and loneliness during the pandemic, and wanted to motivate people to put their best foot forwards
and accomplish all of their goals.</p>
<p>She tied frontend and backend stuff together!</p>
</section>
</div>
<div class="col-4 col-6-medium col-12-small">
Expand All @@ -388,10 +384,7 @@ function Home() {
<header>
<h3>Vi Pham</h3>
</header>
<p>Vi originally inspired this project and worked on the backend.
She is a computer science major at the University of Richmond.
She came up with this project in hope of providing a platform where
users can take a moment to express and process their thoughts daily. She believes reflections play an important role in improving one's mental state and should be done more often.</p>
<p>She originally inspired this project and did the backend stuff!</p>
</section>

</div>
Expand Down

0 comments on commit 768557f

Please sign in to comment.