-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1597 from quadratichq/qa
QA - Week of July 22
- Loading branch information
Showing
73 changed files
with
2,037 additions
and
276 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,26 @@ | ||
name: QA Wolf Notify | ||
|
||
on: | ||
push: | ||
branches: | ||
- qa | ||
|
||
jobs: | ||
qa-wolf-notify: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: qa-wolf-notify | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Wait for 15 minutes | ||
run: sleep 900 | ||
|
||
- name: Notify deploy_success | ||
id: run_tests | ||
run: | | ||
curl -H "Authorization: ${{ secrets.QAW_API_KEY }}" \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{"branch": "qa", "deployment_type": "new_qa", "commit_url": "https://github.com/quadratichq/quadratic/commit/${{ github.sha }}", "sha": "${{ github.sha }}"}' \ | ||
https://app.qawolf.com/api/webhooks/deploy_success |
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,58 @@ | ||
# Use an official node image as a parent image | ||
FROM node:18 AS build | ||
|
||
# Install rustup | ||
RUN echo 'Installing rustup...' && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# Install wasm-pack | ||
RUN echo 'Installing wasm-pack...' && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
# Install python | ||
RUN apt-get update || : && apt-get install python-is-python3 -y && apt install python3-pip -y | ||
|
||
# Install binaryen | ||
RUN apt install binaryen -y | ||
|
||
# Copy the rest of the application code | ||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY updateAlertVersion.json . | ||
COPY ./quadratic-client/. ./quadratic-client/ | ||
COPY ./quadratic-core/. ./quadratic-core/ | ||
COPY ./quadratic-kernels/python-wasm/. ./quadratic-kernels/python-wasm/ | ||
COPY ./quadratic-rust-client/. ./quadratic-rust-client/ | ||
COPY ./quadratic-shared/. ./quadratic-shared/ | ||
|
||
# Run the packaging script for quadratic_py | ||
RUN ./quadratic-kernels/python-wasm/package.sh --no-poetry | ||
|
||
# Build wasm | ||
WORKDIR /app/quadratic-core | ||
RUN rustup target add wasm32-unknown-unknown | ||
RUN echo 'Building wasm...' && wasm-pack build --target web --out-dir ../quadratic-client/src/app/quadratic-core --weak-refs | ||
|
||
# Export TS/Rust types | ||
RUN echo 'Exporting TS/Rust types...' && cargo run --bin export_types | ||
|
||
# Build the quadratic-rust-client | ||
WORKDIR /app | ||
ARG GIT_COMMIT | ||
ENV GIT_COMMIT=$GIT_COMMIT | ||
RUN echo 'Building quadratic-rust-client...' && npm run build --workspace=quadratic-rust-client | ||
|
||
# Build the front-end | ||
WORKDIR /app | ||
RUN echo 'Building front-end...' | ||
RUN npm ci | ||
RUN npx tsc ./quadratic-shared/*.ts | ||
RUN npm run build --workspace=quadratic-client | ||
|
||
FROM nginx:stable-alpine | ||
COPY --from=build /app/build /usr/share/nginx/html | ||
|
||
EXPOSE 80 443 3000 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
Oops, something went wrong.