Skip to content

Commit

Permalink
Use npm ci and build app on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ebekebe committed Jun 20, 2024
1 parent 7a84dfe commit c309de8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
CI: false
run: |
ls
npm install
npm ci
npm run build
- name: Build storybook
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sample-app-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:

# Site Testing steps
- name: Install dependencies
run: npm install
run: npm ci

- name: Build
run: npm run build

- name: Run Unit Tests and generate coverage report
run: npm run test.coverage
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ENV PATH="$HOME/sc-4.8.2-linux/bin:$PATH"
# web app
WORKDIR /sample-app-web
COPY . .
RUN npm install
RUN npm ci

0 comments on commit c309de8

Please sign in to comment.