-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Technical debt: Let's Encrypt, Github Actions, Selenium tests (#905)
* Cleanup expired Let's Encrypt CA Let's Encrypt old Certificate Authority expired on Sept 30, 2021. Most of InSTEDD's infra uses those certificates (as does rails-assets), so this patch makes new certificates work again. * Try to guess server's IP when there's more than one The previous way of guessing the IP address of the server for Capybara tests failed if we had more than one IP address. This new way doesn't guarantee to pick the right IP, but it works strictly better than the previous one. * Migrate CI to Github Actions So long, Travis - and thanks for all the fish! * Fix Selenium Firefox image version We pin it to the one that was current back when the tests were re-enabled, in aed2616 Tests were failing due to an error possibly caused by this image getting updated. See https://stackoverflow.com/a/63251911/641451 See 4d5f84e * Update alto_guisso_rails to support Let's Encrypt The previous versions were using an old, bundled CA trust store.
- Loading branch information
1 parent
93935b8
commit 928a8f2
Showing
9 changed files
with
51 additions
and
38 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,36 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set environment up | ||
run: | | ||
mv docker-compose.ci.yml docker-compose.override.yml | ||
docker-compose pull | ||
docker-compose up -d db elasticsearch redis | ||
docker-compose run --rm --no-deps web bundle | ||
docker-compose run --rm --no-deps web rake db:setup | ||
docker-compose run --rm --no-deps web rake db:test:prepare | ||
- name: Run specs | ||
run: | | ||
docker-compose run --rm web bundle exec rspec spec/ plugins/ | ||
docker-compose run --rm web bundle exec rspec -t js spec/integration/ | ||
docker-compose run --rm web bundle exec rake jasmine:ci | ||
build: | ||
needs: test | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DOCKER_REPOSITORY: 'instedd/resourcemap' | ||
DOCKER_USER: ${{ secrets.DOCKER_USER }} | ||
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build image & push to Docker Hub | ||
run: ./build.sh |
This file was deleted.
Oops, something went wrong.
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
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
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