Skip to content

OTWO-7300 Get default branch for Git (#151) #36

OTWO-7300 Get default branch for Git (#151)

OTWO-7300 Get default branch for Git (#151) #36

Workflow file for this run

name: CI Pipeline
on:
pull_request:
types:
- opened
- synchronize
push:
branches: [main]
jobs:
ci_task:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run rubocop and tests
run: |
docker pull ohdeployer/ohloh_scm:latest
cmd='/etc/init.d/ssh start; bundle exec rubocop; rake test 2> /dev/null'
docker run --rm -P -v $(pwd):/home/app/ohloh_scm -i ohdeployer/ohloh_scm:latest /bin/sh -c "$cmd"