Skip to content

Commit

Permalink
Merge pull request #756 from jfbenckhuijsen/feature/use-fabri8-for-np…
Browse files Browse the repository at this point in the history
…m-install

Initial version, try run npm install from docker-maven-plugin
  • Loading branch information
loicmathieu authored Jan 28, 2025
2 parents 36d88f3 + 2b64440 commit ad6976a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
cache: 'npm'
cache-dependency-path: firebase-devservices/deployment/src/test/functions/package-lock.json

- uses: bahmutov/npm-install@v1
with:
working-directory: firebase-devservices/deployment/src/test/functions

- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/quarkus-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ jobs:
repository: ${{ env.ECOSYSTEM_CI_REPO }}
path: ecosystem-ci

- uses: actions/setup-node@v4
with:
node-version: 20

- uses: bahmutov/npm-install@v1
with:
working-directory: current-repo/firebase-devservices/deployment/src/test/functions
Expand Down
35 changes: 35 additions & 0 deletions firebase-devservices/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,41 @@ quarkus-google-cloud-common-grpc and Quarkus includes the netty library -->
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.45.1</version>
<executions>
<execution>
<id>npm-install-before-testing</id>
<goals>
<goal>stop</goal>
<goal>start</goal>
</goals>
<phase>process-test-resources</phase>
<configuration>
<images>
<image>
<!-- Node version must match version in package.json -->
<name>node:20</name>
<run>
<cmd>npm install</cmd>
<workingDir>/tmp/node</workingDir>
<volumes>
<bind>
<volume>src/test/functions:/tmp/node</volume>
</bind>
</volumes>
<wait>
<exit>0</exit>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit ad6976a

Please sign in to comment.