Skip to content

Commit

Permalink
Use Github Actions instead of Travis CI (Kong#1735)
Browse files Browse the repository at this point in the history
* feat: create build and test github action workflow

* fix(workflow) set COMPOSE_INTERACTIVE_NO_CLI = 1

Should fix the error `the input device is not a TTY` as documented here docker/compose#5696 (comment)

* fix(workspace) remove previous edit

Going to try using `-T` on the actual docker compose command.

* fix(makefile) use -T on docker-compose exec

* feat: remove Travis CI config
  • Loading branch information
nijikokun authored and Aron Eidelman committed Jan 23, 2020
1 parent 82b59f0 commit cb87f68
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clean environment and files
run: make clean
- name: Build docker-compose stack
run: docker-compose build
- name: Create dist folder
run: mkdir dist
- name: Set permissions
run: sudo chmod -R 777 .
- name: Run tests
run: make docker-test
- name: Check links
run: make check-links
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ background-docker-up:
-while [ `curl -s -o /dev/null -w ''%{http_code}'' localhost:3000` != 200 ]; do echo "waiting"; docker-compose logs --tail=10 jekyll; sleep 45; done

docker-test: background-docker-up
docker-compose exec jekyll npm test
docker-compose exec -T jekyll npm test

check-links: background-docker-up
docker-compose exec jekyll yarn blc http://localhost:3000 -efr --exclude careers --exclude hub --exclude request-demo --exclude kong-cloud
docker-compose exec -T jekyll yarn blc http://localhost:3000 -efr --exclude careers --exclude hub --exclude request-demo --exclude kong-cloud

0 comments on commit cb87f68

Please sign in to comment.