forked from houdiniproject/houdini
-
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.
Merge branch 'supporter_level_goal' into update-react-dom
- Loading branch information
Showing
174 changed files
with
2,566 additions
and
975 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,11 @@ | ||
.env | ||
.env.test | ||
Dockerfile | ||
docker-compose.yml | ||
README.md | ||
.dockerignore | ||
tmp | ||
log | ||
node_modules | ||
.bin | ||
vendor |
Validating CODEOWNERS rules …
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,2 @@ | ||
# put Eric as codeowner so he is autoadded to review every PR | ||
* @wwahammy |
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 |
---|---|---|
|
@@ -6,20 +6,21 @@ on: | |
push: | ||
branches: ["supporter_level_goal"] | ||
concurrency: | ||
group: build--${{ github.head_ref }} | ||
group: build--${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
node: [14.19.1] | ||
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] | ||
node: [16] | ||
ruby: ['2.6.10'] | ||
postgres: ['16'] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v2 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
|
@@ -54,7 +55,7 @@ jobs: | |
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user | ||
uses: Daniel-Marynicz/[email protected] | ||
with: | ||
postgres_image_tag: 12-alpine | ||
postgres_image_tag: ${{ matrix.postgres }}-alpine | ||
postgres_user: admin | ||
postgres_password: password | ||
- uses: actions/setup-node@v4 | ||
|
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 |
---|---|---|
|
@@ -25,8 +25,9 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
node: [14.19.1] | ||
node: [16] | ||
ruby: ['2.6.10'] | ||
postgres: ['16'] | ||
fail-fast: false | ||
steps: | ||
- name: 'Checkout our repo' | ||
|
@@ -37,7 +38,7 @@ jobs: | |
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user | ||
uses: Daniel-Marynicz/[email protected] | ||
with: | ||
postgres_image_tag: 12-alpine | ||
postgres_image_tag: ${{ matrix.postgres }}-alpine | ||
postgres_user: admin | ||
postgres_password: password | ||
- uses: actions/setup-node@v4 | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
14.19.1 | ||
16 | ||
|
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,2 @@ | ||
ruby 2.6.10 | ||
nodejs 14.19.1 |
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,84 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG BASE_IMAGE=ruby | ||
ARG RUBY_VERSION=2.6.10 | ||
ARG BASE_TAG=${RUBY_VERSION}-slim | ||
ARG BASE=${BASE_IMAGE}:${BASE_TAG} | ||
|
||
FROM ${BASE} AS builder | ||
|
||
ENV LANG en_US.UTF-8 | ||
|
||
RUN apt-get update -qq \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
tzdata \ | ||
git \ | ||
nodejs \ | ||
yarn \ | ||
&& curl -sL https://deb.nodesource.com/setup_16.x | bash \ | ||
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" \ | ||
> /etc/apt/sources.list.d/yarn.list \ | ||
&& apt-get update -qq \ | ||
&& apt-get install -y nodejs yarn \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG RAILS_ROOT=/app/ | ||
|
||
RUN mkdir ${RAILS_ROOT} | ||
WORKDIR ${RAILS_ROOT} | ||
|
||
COPY package.json yarn.lock ${RAILS_ROOT} | ||
RUN yarn install | ||
|
||
COPY . ${RAILS_ROOT} | ||
|
||
# RUN bundle exec rake assets:precompile | ||
|
||
FROM ${BASE} | ||
|
||
ENV LANG en_US.UTF-8 | ||
RUN apt-get update -qq \ | ||
&& apt-get install -y libjemalloc2 tzdata libv8-dev curl default-jre git build-essential libpq-dev \ | ||
&& curl -sL https://deb.nodesource.com/setup_16.x | bash \ | ||
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" \ | ||
> /etc/apt/sources.list.d/yarn.list \ | ||
&& apt-get update -qq \ | ||
&& apt-get install -y nodejs yarn \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG BASE_RELEASE=bullseye | ||
RUN apt-get update -qq \ | ||
&& echo "deb https://apt.postgresql.org/pub/repos/apt ${BASE_RELEASE}-pgdg main" \ | ||
> /etc/apt/sources.list.d/pgdg.list \ | ||
&& curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg \ | ||
&& apt-get update -qq \ | ||
&& apt-get install -y postgresql-client-16 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl https://cli-assets.heroku.com/install.sh | sh | ||
|
||
RUN groupadd --gid 1000 app && \ | ||
useradd --uid 1000 --no-log-init --create-home --gid app app | ||
|
||
USER app | ||
|
||
COPY --from=builder --chown=app:app /app /app | ||
|
||
ENV RAILS_ENV=development | ||
ENV IS_DOCKER=true | ||
ENV RAILS_LOG_TO_STDOUT true | ||
ENV RAILS_SERVE_STATIC_FILES true | ||
ENV PORT 3000 | ||
ARG RAILS_ROOT=/app/ | ||
|
||
WORKDIR $RAILS_ROOT | ||
RUN touch /home/app/.netrc | ||
RUN mkdir -p tmp/pids | ||
CMD bundle check || (bundle update --bundler && bundle install -j4 --retry 3) && foreman start |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
web: bundle exec puma -C ./config/puma.rb | ||
worker: bundle exec rake jobs:work | ||
full_contact_worker: bundle exec rake work_full_contact_queue |
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,3 +1,3 @@ | ||
web: bin/rails server -p $PORT | ||
web: /bin/bash -c '[[ $IS_DOCKER = "true" ]] && $(bundle exec puma -p $PORT -C ./config/puma.rb) || $(bin/rails server -p $PORT)' | ||
worker: bin/rake jobs:work | ||
webpack: yarn watch |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/* License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later */ | ||
@import 'mixins'; | ||
@import 'nonprofits/donation_form/title_row'; | ||
@import 'nonprofits/donation_form/footer'; | ||
@import 'nonprofits/donation_form/form'; // for styling the actual form | ||
@import 'nonprofits/donation_form/show/index'; // for styling the layout on /donate |
Oops, something went wrong.