Skip to content

Commit

Permalink
replace Travis by Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Apr 1, 2024
1 parent e843a9e commit b712fda
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 22 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Validate Project

# on:
# push:
# branches-ignore:
# - main

on: [push]

jobs:
ci_validation:
runs-on: ubuntu-latest

services:
mongo:
image: mongo:6.0.14
ports:
- 27017:27017
env:
# MONGO_INITDB_ROOT_USERNAME: test
# MONGO_INITDB_ROOT_PASSWORD: password
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: 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
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion MIT-LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 NoCoffee
Copyright (c) 2010-2024 NoCoffee

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Steam

[![Code Climate](https://codeclimate.com/github/locomotivecms/steam/badges/gpa.svg)](https://codeclimate.com/github/locomotivecms/steam) [![Build Status](https://travis-ci.com/locomotivecms/steam.svg?branch=master)](https://travis-ci.com/locomotivecms/steam) [![Coverage Status](https://coveralls.io/repos/locomotivecms/steam/badge.svg?branch=master)](https://coveralls.io/r/locomotivecms/steam?branch=master) [![Gitter](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/locomotivecms/steam)

The rendering stack used by both Wagon and Engine. It includes:

- the rack stack to pages and already precompiled assets (through webpack, vite or other).
Expand Down Expand Up @@ -103,4 +101,4 @@ Note: you do not need to prefix with bundle exec as the docky-ruby image already

## License

Copyright (c) 2023 NoCoffee. MIT Licensed, see MIT-LICENSE for details.
Copyright (c) 2010-2024 NoCoffee. MIT Licensed, see MIT-LICENSE for details.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ namespace :mongodb do
`mv #{dump_path} #{db_path}`
end

`mongo steam_test_1_7_x --eval "db.dropDatabase()" #{host}`
`mongorestore -d steam_test_1_7_x #{db_path} #{host}`
`mongo steam_test_1_8_x --eval "db.dropDatabase()" #{host}`
`mongorestore -d steam_test_1_8_x #{db_path} #{host}`

puts "Done! Update now the spec/support/helpers.rb file by setting the new id of the site returned by the mongodb_site_id method"
end
Expand Down
5 changes: 0 additions & 5 deletions script/ci/before_build.sh

This file was deleted.

2 changes: 1 addition & 1 deletion spec/support/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Spec
module Helpers

def mongodb_database
'steam_test_1_7_x'
'steam_test_1_8_x'
end

def mongodb_site_id
Expand Down

0 comments on commit b712fda

Please sign in to comment.