-
Notifications
You must be signed in to change notification settings - Fork 59
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 #234 from locomotivecms/replace-travis-gh-actions
replace Travis CI by Github actions
- Loading branch information
Showing
8 changed files
with
52 additions
and
23 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,43 @@ | ||
name: Continuous integration | ||
|
||
on: [push] | ||
|
||
jobs: | ||
ci_validation: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
mongo: | ||
image: mongo:6.0.14 | ||
ports: | ||
- 27017:27017 | ||
env: | ||
MONGO_INITDB_DATABASE: steam_test_1_8_x | ||
options: >- | ||
--health-cmd "echo 'db.runCommand("ping").ok' | mongosh --quiet" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
--name mongo_container | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install MongoDB tools | ||
run: | | ||
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb | ||
sudo apt install ./mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1.4 | ||
bundler-cache: true | ||
cache-version: 1 | ||
|
||
- name: Prepare the DB | ||
run: bundle exec rake mongodb:test:seed | ||
|
||
- name: Test | ||
run: bundle exec rspec |
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 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