-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So long, Travis - and thanks for all the fish!
- Loading branch information
1 parent
bd6c3ed
commit c890025
Showing
4 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set environment up | ||
run: | | ||
docker-compose pull | ||
docker-compose build | ||
docker-compose run --rm broker sh -c './rebar get-deps' | ||
docker-compose run --rm broker sh -c './rebar compile' | ||
docker-compose run --rm web bundle install | ||
docker-compose run --rm web rake db:setup | ||
docker-compose run --rm web rake db:test:prepare | ||
- name: Run specs | ||
run: | | ||
docker-compose run --rm web rspec | ||
docker-compose run --rm broker make eunit | ||
build: | ||
needs: test | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DOCKER_REPOSITORY: 'instedd/verboice' | ||
DOCKER_USER: ${{ secrets.DOCKER_USER }} | ||
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build image & push to Docker Hub | ||
run: ./build.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters