Skip to content

Commit

Permalink
Trigger-CI fsevent
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhwaniartefact committed Nov 3, 2023
1 parent e7bf026 commit 596374a
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 1,261 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: "Acceptance Test"
on:
pull_request:
types: [labeled]
push:
branches:
- "dev/issue-Update-fronend-dependecies-take-two"
jobs:
test:
if: github.event.label.name == 'AMAUAT'
name: "Test ${{ matrix.tag }} on ${{ matrix.browser }}"
runs-on: "ubuntu-22.04"
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- "qa/**"
- "stable/**"
- "dev/issue-Update-fronend-dependecies-take-two"
jobs:
test:
name: "Test ${{ matrix.rule }} on ${{ matrix.python-version }}"
Expand Down
11 changes: 5 additions & 6 deletions hack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ RUN set -ex \
# Download ClamAV virus signatures
RUN freshclam --quiet

# Install pip, Node.js and Yarn
# Install pip, Node.js and npm
RUN set -ex \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& add-apt-repository --yes "deb https://dl.yarnpkg.com/debian/ stable main" \
&& curl -sS https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install -y --no-install-recommends \
yarn nodejs \
nodejs \
&& rm -rf /var/lib/apt/lists/*

ENV PYENV_ROOT="/pyenv/data"
Expand Down Expand Up @@ -146,7 +145,7 @@ RUN set -ex \
USER archivematica

RUN set -ex \
&& yarn --cwd=/src/src/dashboard/frontend install --frozen-lockfile
&& npm install --no-package-lock

WORKDIR /src/src/dashboard/src

Expand Down Expand Up @@ -197,7 +196,7 @@ USER archivematica

WORKDIR /src/src/dashboard/frontend

ENTRYPOINT ["yarn", "run", "test-single-run"]
ENTRYPOINT ["npm", "run", "test-single-run"]

# -----------------------------------------------------------------------------

Expand Down
10 changes: 4 additions & 6 deletions hack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@ bootstrap-dashboard-db: ## Bootstrap Dashboard (new database).

bootstrap-dashboard-frontend: ## Build front-end assets.
docker compose run \
-e HOME=/tmp/yarn-config \
--rm \
--no-deps \
--user $(CALLER_UID):$(CALLER_GID) \
--entrypoint yarn \
--entrypoint npm \
archivematica-dashboard \
--cwd=/src/src/dashboard/frontend install --frozen-lockfile
install --no-package-lock

restart-am-services: ## Restart Archivematica services: MCPServer, MCPClient, Dashboard and Storage Service.
docker compose restart --no-deps archivematica-mcp-server
Expand Down Expand Up @@ -365,13 +364,12 @@ test-frontend: ## Run Dashboard JS tests.
--build-arg TARGET=archivematica-dashboard-testing \
../
docker run \
-e HOME=/tmp/yarn-config \
--rm \
--user $(CALLER_UID):$(CALLER_GID) \
--volume "$(SRCDIR)/dashboard:/src/src/dashboard" \
--entrypoint yarn \
--entrypoint npm \
archivematica-dashboard-testing \
--cwd=/src/src/dashboard/frontend install --frozen-lockfile
install
docker run \
--rm \
--volume "$(SRCDIR)/dashboard/frontend:/src/src/dashboard/frontend" \
Expand Down
Loading

0 comments on commit 596374a

Please sign in to comment.