diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index bf02911..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,23 +0,0 @@ -jobs: - default: &default - machine: - enable: true - environment: - DEVELOPMENT: 1 - steps: - - checkout - - test-h1: - <<: *default - steps: - - checkout - - run: - name: h1 - command: | - bash h1.sh - -workflows: - version: 2 - tests: - jobs: - - test-h1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e2f9b6f --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 7a8e567..4f7bc32 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/build-rails.sh b/build-rails.sh index d31a3e2..53dc53f 100644 --- a/build-rails.sh +++ b/build-rails.sh @@ -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` @@ -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