Skip to content
Open

a #1

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
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push]
on: [pull_request]

jobs:
build:
Expand All @@ -10,7 +10,6 @@ jobs:
image: utyosu/build-rails:latest

steps:
- run: |
BRANCH_NAME=`echo "${GITHUB_REF}" | sed "s/^\(refs\/heads\/\|refs\/remotes\/\)//"`
echo ${BRANCH_NAME}
/app/run.sh https://github.com/${GITHUB_REPOSITORY}.git ${BRANCH_NAME} tools/cloud_build/test.sh
- uses: actions/checkout@master
- name: run test
run: . tools/cloud_build/test.sh
5 changes: 2 additions & 3 deletions tools/cloud_build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ FROM ubuntu:16.04

SHELL ["/bin/bash", "-c"]

ENV DEBIAN_FRONTEND="noninteractive"
ENV RUBY_VERSION="2.5.1"
ENV BUNDLER_VERSION="2.1.4"
ENV DEBIAN_FRONTEND="noninteractive"
ENV PATH=/root/.rbenv/bin:/root/.rbenv/shims:$PATH

WORKDIR /app

Expand Down Expand Up @@ -39,5 +40,3 @@ RUN set -x \
&& /root/.rbenv/shims/bundle config set without development \
&& /root/.rbenv/shims/bundle install \
&& rm Gemfile Gemfile.lock

COPY /tools/cloud_build/run.sh .
17 changes: 0 additions & 17 deletions tools/cloud_build/run.sh

This file was deleted.