Skip to content

Commit

Permalink
Merge pull request #159 from ing-bank/feature/guthubactions
Browse files Browse the repository at this point in the history
add github actions
  • Loading branch information
arempter authored Jan 29, 2021
2 parents 80adf10 + cc69dc1 commit eeccf0d
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 75 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI-PR
on:
pull_request:
branches:
- master
jobs:
it-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "Add s3.localhost to /etc/hosts to be able to run it test on ceph"
run: echo "127.0.0.1 s3.localhost" | sudo tee -a /etc/hosts
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- name: "Starting dependent containers for testing"
run: docker-compose up -d keycloak ceph postgres-server mariadb ranger-admin rokku-sts cassandra
- name: "Install aws cli"
run: pip install --user awscli
- name: "Compile the project while containers are starting up"
run: sbt clean compile
- name: "Wait for containers to be up and running"
run: bash waitForContainerSetup.sh
- name: "setup s3"
run: bash setupS3Env.sh
- name: "Running it tests"
run: sbt clean coverage test it:test coverageReport
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- name: Running test
run: sbt clean test;

66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/ing-bank/rokku.svg?branch=master)](https://travis-ci.org/ing-bank/rokku)
[![CI Actions Status](https://github.com/ing-bank/rokku/workflows/CI-PR/badge.svg)](https://github.com/ing-bank/rokku/actions)
[![codecov.io](http://codecov.io/github/ing-bank/rokku/coverage.svg?branch=master)](https://codecov.io/gh/ing-bank/rokku?branch=master)
[![](https://images.microbadger.com/badges/image/wbaa/rokku:latest.svg)](https://hub.docker.com/r/wbaa/rokku/tags/)

Expand Down
16 changes: 8 additions & 8 deletions setupS3Env.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

docker-compose exec ceph radosgw-admin user modify --uid ceph-admin --system
docker-compose exec ceph s3cmd put /etc/issue s3://demobucket/subdir/
docker-compose exec ceph s3cmd mb s3://home
docker-compose exec ceph s3cmd mb s3://rokku_hc_bucket
docker-compose exec ceph s3cmd put /etc/issue s3://home/testuser/
docker-compose exec ceph s3cmd put /etc/issue s3://home/testuser1/
docker-compose exec ceph s3cmd put /etc/issue s3://home/userone/
docker-compose exec ceph s3cmd mb s3://shared
docker-compose exec -T ceph radosgw-admin user modify --uid ceph-admin --system
docker-compose exec -T ceph s3cmd put /etc/issue s3://demobucket/subdir/
docker-compose exec -T ceph s3cmd mb s3://home
docker-compose exec -T ceph s3cmd mb s3://rokku_hc_bucket
docker-compose exec -T ceph s3cmd put /etc/issue s3://home/testuser/
docker-compose exec -T ceph s3cmd put /etc/issue s3://home/testuser1/
docker-compose exec -T ceph s3cmd put /etc/issue s3://home/userone/
docker-compose exec -T ceph s3cmd mb s3://shared

# configure ACLs
export AWS_ACCESS_KEY_ID=accesskey
Expand Down

0 comments on commit eeccf0d

Please sign in to comment.