Skip to content

Commit

Permalink
Merge pull request #507 from eecs-autograder/mutant_hints
Browse files Browse the repository at this point in the history
Mutant hints beta, dependecy bumps & regression fixes
  • Loading branch information
james-perretta authored Apr 2, 2024
2 parents 7bb8ea9 + 8b5bfa9 commit e1c034a
Show file tree
Hide file tree
Showing 55 changed files with 20,857 additions and 18,831 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
14 changes: 5 additions & 9 deletions Dockerfile-website-dev
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM ubuntu:xenial
FROM ubuntu:jammy

RUN mkdir -p /usr/src/app/src
RUN apt-get update --fix-missing

WORKDIR /usr/src/app

RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y curl gnupg wget
RUN wget https://nodejs.org/dist/v16.9.1/node-v16.9.1-linux-x64.tar.gz
RUN tar -xf node-v16.9.1-linux-x64.tar.gz -C /usr/local --strip-components=1 --no-same-owner

COPY package.json .
COPY package-lock.json .
Expand All @@ -16,8 +16,4 @@ COPY .postcssrc.js .
COPY vue.config.js .
COPY tsconfig.json .

# HACK: For some reason, npm install exits nonzero the first time,
# even though the packages installed successfully. The second time,
# it succeeds. This may just be due to running out of memory when
# running in a VM.
RUN bash -c 'npm install || npm install'
RUN npm ci
10 changes: 5 additions & 5 deletions Dockerfile-website-prod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM nginx:1.13
FROM nginx:1.25

RUN apt-get update --fix-missing
RUN mkdir -p /usr/src/app/src

WORKDIR /usr/src/app

RUN apt-get install -y curl gnupg
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y curl gnupg wget
RUN wget https://nodejs.org/dist/v16.9.1/node-v16.9.1-linux-x64.tar.gz
RUN tar -xf node-v16.9.1-linux-x64.tar.gz -C /usr/local --strip-components=1 --no-same-owner

COPY package.json .
COPY package-lock.json .
Expand All @@ -16,7 +16,7 @@ COPY .postcssrc.js .
COPY vue.config.js .
COPY tsconfig.json .

RUN npm install
RUN npm ci

COPY . /usr/src/app
RUN npm run build
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ For information about contributing to Autograder.io, see our
Follow the [dev stack setup tutorial](https://github.com/eecs-autograder/autograder-full-stack/blob/master/docs/development_setup.md) for the [autograder-full-stack repo](https://github.com/eecs-autograder/autograder-full-stack).

## Dev commands
The unit tests currently support Node.js version 12 (newer versions may work too).
The unit tests currently support Node.js version 16 (newer versions may work too).
You can install this version with [NVM](https://github.com/nvm-sh/nvm/blob/master/README.md)
by running:
```
nvm install 12
nvm install 16
```

To run the unit tests (with coverage):
Expand Down
Loading

0 comments on commit e1c034a

Please sign in to comment.