-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try running tests in GitHub Actions (#680)
* Try running tests in GitHub Actions * Update tests.yml * tweaks and switch to grunt-contrib-jasmine v2.0.0 * add prereqs for Chrome Headless see publiclab/image-sequencer#1798 * jest tweaks * running! only 3 failing tests * getting closer * fix jest tests * Update Gruntfile.js
- Loading branch information
Showing
8 changed files
with
1,649 additions
and
184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: tests | ||
on: [pull_request] | ||
jobs: | ||
base-tests: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
check-latest: true | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: "Build dist files" | ||
run: grunt build | ||
- name: "Run tests" | ||
run: grunt jasmine | ||
|
||
ui-tests: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
check-latest: true | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: "Build dist files" | ||
run: grunt build | ||
- name: "Run UI tests" | ||
run: npm run test-ui |
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 |
---|---|---|
@@ -1,5 +1,67 @@ | ||
FROM gitpod/workspace-full | ||
|
||
|
||
USER root | ||
RUN sudo apt-get update && apt-get install -y apt-transport-https \ | ||
&& sudo apt-get install -y \ | ||
xserver-xorg-dev \ | ||
libxext-dev \ | ||
build-essential \ | ||
libxi-dev \ | ||
libglew-dev \ | ||
pkg-config \ | ||
libglu1-mesa-dev \ | ||
freeglut3-dev \ | ||
mesa-common-dev \ | ||
x11-apps \ | ||
libice6 \ | ||
libsm6 \ | ||
libxaw7 \ | ||
libxft2 \ | ||
libxmu6 \ | ||
libxpm4 \ | ||
libxt6 \ | ||
x11-apps \ | ||
xbitmaps \ | ||
ca-certificates \ | ||
fonts-liberation \ | ||
libappindicator3-1 \ | ||
libasound2 \ | ||
libatk-bridge2.0-0 \ | ||
libatk1.0-0 \ | ||
libc6 \ | ||
libcairo2 \ | ||
libcups2 \ | ||
libdbus-1-3 \ | ||
libexpat1 \ | ||
libfontconfig1 \ | ||
libgbm1 \ | ||
libgcc1 \ | ||
libglib2.0-0 \ | ||
libgtk-3-0 \ | ||
libnspr4 \ | ||
libnss3 \ | ||
libpango-1.0-0 \ | ||
libpangocairo-1.0-0 \ | ||
libstdc++6 \ | ||
libx11-6 \ | ||
libx11-xcb1 \ | ||
libxcb1 \ | ||
libxcomposite1 \ | ||
libxcursor1 \ | ||
libxdamage1 \ | ||
libxext6 \ | ||
libxfixes3 \ | ||
libxi6 \ | ||
libxrandr2 \ | ||
libxrender1 \ | ||
libxss1 \ | ||
libxtst6 \ | ||
lsb-release \ | ||
wget \ | ||
xdg-utils \ | ||
xvfb \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* | ||
|
||
USER gitpod | ||
|
||
RUN bash -c ". ~/.nvm/nvm-lazy.sh && npm install -g gulp-cli live-server" | ||
RUN bash -c ". ~/.nvm/nvm-lazy.sh && npm install -g gulp-cli live-server" |
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
Oops, something went wrong.