Skip to content

Commit

Permalink
Re-enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Feb 15, 2022
1 parent 9f4380d commit b263a18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ jobs:
${{ runner.os }}-gems-
- name: Install
env:
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
run: |
cp .env.build .env
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
sudo /etc/init.d/mysql start
# bundle exec rails db:setup RAILS_ENV=test
bundle exec rails db:setup RAILS_ENV=test
- name: Lint and Test
env:
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
Expand All @@ -73,7 +73,7 @@ jobs:
MEMCACHE_SERVERS: "localhost:11211"
run: |
bundle exec rubocop
# bundle exec rspec
bundle exec rspec
echo $?
# - name: Publish code coverage
# uses: paambaati/[email protected]
Expand All @@ -96,12 +96,12 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -128,7 +128,7 @@ jobs:
tags: ghcr.io/${{ github.repository }}:${{ steps.set_git_vars.outputs.GIT_TAG }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

deploy:
needs: [test, build]
runs-on: ubuntu-latest
Expand All @@ -144,7 +144,7 @@ jobs:
echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
echo "::set-output name=TAG::$(git tag --points-at HEAD)"
echo "::set-output name=GIT_SHA::$(git rev-parse HEAD)"
echo "::set-output name=GIT_SHA_SHORT::$(git rev-parse --short HEAD)"
echo "::set-output name=GIT_SHA_SHORT::$(git rev-parse --short HEAD)"
id: extract_variables

- name: Checkout terraform config repo
Expand Down
1 change: 1 addition & 0 deletions vendor/docker/webapp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ server {
passenger_enabled on;
passenger_user app;
passenger_ruby /usr/bin/ruby;
passenger_max_request_queue_size 200;
merge_slashes off;
client_max_body_size 10M;

Expand Down

0 comments on commit b263a18

Please sign in to comment.