forked from excaliburjs/Excalibur
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [excaliburjs#2374] M1 Mac tests, add test runner container (exca…
…liburjs#2373) Closes excaliburjs#2374 This PR attempts to add a dev container build to address cross platform development In addition this revs our puppeteer to the latest build Mac Prerequisites: * Docker for Mac https://docs.docker.com/desktop/mac/install/ * In the root, run `docker-compose build` (setup build environment and installs dependencies, only needed once) * To run tests in watch mode `docker-compose run --rm dev npm run test:watch` * To run a build `docker-compose run --rm dev npm run all`
- Loading branch information
Showing
8 changed files
with
105 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3' | ||
|
||
services: | ||
dev: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile | ||
working_dir: /opt/app | ||
container_name: "dev" | ||
volumes: | ||
- "./:/opt/app" | ||
- /opt/app/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from ubuntu:20.04 | ||
# Referenced https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md | ||
# ubuntu-latest https://github.com/actions/virtual-environments | ||
|
||
# Chrome wants a timezone | ||
ENV TZ=America/Chicago | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt update | ||
# Install Chromium Shared Deps (puppeteer in npm comes with chromium binary) | ||
RUN apt install -y wget curl gnupg libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev libasound2 | ||
|
||
# Install node | ||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - | ||
RUN apt-get -y install nodejs | ||
|
||
|
||
WORKDIR /opt/app | ||
ADD package.json package-lock.json /opt/app/ | ||
RUN npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters