Skip to content

Commit

Permalink
#35, #37, #83 Fixed working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jofaval committed Jul 25, 2022
1 parent a0cfe38 commit 86a879b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ jobs:
node-version: [15.14.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

defaults:
run:
working-directory: ./app
env:
working-directory: ./app

steps:
- uses: actions/checkout@v3
Expand All @@ -27,7 +26,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: ${{ env.working-directory }}
- run: npm ci
working-directory: ${{ env.working-directory }}
- run: npm run build --if-present
working-directory: ${{ env.working-directory }}
- run: npm run coverage
working-directory: ${{ env.working-directory }}
# - run: npm run test:e2e
# working-directory: ${{ env.working-directory }}
12 changes: 8 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ jobs:
node-version: [15.14.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

defaults:
run:
working-directory: ./app
env:
working-directory: ./app

steps:
- uses: actions/checkout@v3
Expand All @@ -27,14 +26,19 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: ${{ env.working-directory }}
- run: npm ci
working-directory: ${{ env.working-directory }}
- run: npm run build --if-present
working-directory: ${{ env.working-directory }}
- run: npm run coverage
working-directory: ${{ env.working-directory }}
# - run: npm run test:e2e
# working-directory: ${{ env.working-directory }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: dist
folder: app/dist
env:
CI: false
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All the changes made to this project, wether they are bugfixes, additions, modif
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2022-07-24 (v0.0.3)
## 2022-07-25 (v0.0.3)

### Added

Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "vitest",
"coverage": "vitest run --coverage",
"lint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx --ext .vue src/",
"prepare": "husky install"
"postinstall": "husky install"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 86a879b

Please sign in to comment.