Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Added GitHub workflows #21

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on: [push]

jobs:
verify:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install dependent libraries
run: sudo apt-get install -y libpq-dev
- name: Set up Ruby and run bundle install
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Show Ruby version
run: ruby -v
- name: Create and test new app
run: |
bash v1.sh
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Welcome to Rails Neutrino! This repository automatically creates a new high-quality Rails 6 app from scratch. It takes just a few minutes to complete a task that would require many hours of grueling work to do manually.

[![CircleCI](https://circleci.com/gh/rubyonracetracks/rails_neutrino_6/tree/main.svg?style=svg)](https://circleci.com/gh/rubyonracetracks/rails_neutrino_6/tree/main)

## Naming

A neutrino is type of subatomic particle with no electrical charge that moves at the speed of light and interacts extremely weakly with matter in its path. In fact, neutrinos interact so weakly with objects in their path that nearly all of them fly through the entire diameter of the Earth unimpeded.
Expand Down
9 changes: 9 additions & 0 deletions build-rails.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

adsgjlasdgas

# Basic parameters
BASE_APP_URL='' # Will be updated later if necessary
HOST_ENV=`cat tmp/host_env.txt`
Expand Down Expand Up @@ -101,6 +103,13 @@ echo 'gem list "^bundler$"'
gem list "^bundler$"
echo ''

if [ "$CI" = 'true' ]
then
echo '-----------------'
echo 'gem install rails'
gem install rails
fi

echo '--------'
echo 'rails -v'
rails -v
Expand Down