Migrate CI to GitHub Actions

This commit is contained in:
Dan Rice 2019-10-30 20:45:50 -04:00
parent 59f243c831
commit 79ac907346
5 changed files with 16 additions and 26 deletions

View file

@ -0,0 +1,11 @@
---
name: Continuous Integration
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: bash -x script/cibuild

View file

@ -1,21 +0,0 @@
sudo: true
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.21.0
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod 0755 docker-compose
- sudo mv docker-compose /usr/local/bin
install: true
script: "script/cibuild"
addons:
apt:
packages:
- docker-ce
notifications:
email: false
#irc:
#channels: "chat.freenode.net#tracks"
#skip_join: true

View file

@ -6,7 +6,7 @@ RUN touch /etc/app-env
COPY Gemfile* /app/ COPY Gemfile* /app/
RUN gem install bundler RUN gem install bundler
RUN bundle install RUN bundle install --jobs 4
RUN mkdir /app/log RUN mkdir /app/log

View file

@ -11,7 +11,7 @@
* Contributors: https://github.com/TracksApp/tracks/wiki/Contributors * Contributors: https://github.com/TracksApp/tracks/wiki/Contributors
* Version: 2.4.0 * Version: 2.4.0
[![Build Status](https://travis-ci.org/TracksApp/tracks.svg?branch=master)](https://travis-ci.org/TracksApp/tracks) [![Build Status](https://github.com/TracksApp/tracks/workflows/Continuous%20Integration/badge.svg)](https://github.com/TracksApp/tracks/actions)
[![Code Climate](https://codeclimate.com/github/TracksApp/tracks/badges/gpa.svg)](https://codeclimate.com/github/TracksApp/tracks) [![Code Climate](https://codeclimate.com/github/TracksApp/tracks/badges/gpa.svg)](https://codeclimate.com/github/TracksApp/tracks)
Full instructions for both new installations and upgrades from older installations of Tracks Full instructions for both new installations and upgrades from older installations of Tracks

View file

@ -26,8 +26,8 @@ $docker_compose up -d
script/poll-for-db script/poll-for-db
# Leaving this in since it will be needed for Rails 5 # Leaving this in since it will be needed for Rails 5
bin/rails db:environment:set RAILS_ENV=test || true $docker_compose run web bin/rails db:environment:set RAILS_ENV=test || true
bin/rake db:reset $docker_compose run web bin/rake db:reset
bin/rake test $docker_compose run web bin/rake test