Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Refactor proposal: simpler variables #968

Merged
merged 3 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@v1
- name: Install common packages
run: cd common && npm install
- name: Install frontend packages
run: cd frontend && npm install
- name: Run unit tests
run: cd frontend && npm install && npm run test
run: cd frontend && npm run test

frontend-e2e-test:
name: Frontend e2e testing
Expand All @@ -39,7 +43,9 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@v1
- name: Install Packages
- name: Install common packages
run: cd common && npm install
- name: Install frontend packages
run: cd frontend && npm install
- name: Build Project
run: cd frontend && npm run build
Expand All @@ -57,8 +63,12 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@v1
- name: Install common packages
run: cd common && npm install
- name: Install backend packages
run: cd backend && npm install
- name: Run typecheck
run: cd backend && npm install && npm run typecheck
run: cd backend && npm run typecheck

backend-database-types-check:
name: Backend database types check
Expand Down
5 changes: 5 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM mhart/alpine-node:16 AS build

WORKDIR /near-explorer/common
COPY ./common/package.json ./common/package-lock.json ./
RUN npm clean-install

WORKDIR /near-explorer/backend
ENV HOME=/tmp
COPY ./backend/package.json ./backend/package-lock.json ./
RUN npm clean-install --prod
RUN cp -a node_modules ../production_node_modules
RUN npm clean-install

COPY ./common ../common
COPY ./backend ./
COPY ./frontend ../frontend/

Expand Down
Loading