Coder Social home page Coder Social logo

chesire / eden Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 347 KB

Template repository for Android projects. Provides multiple pre-setup tools and configurations. See README for more information.

License: Apache License 2.0

Ruby 88.98% Shell 11.02%

eden's Introduction

Metrics

eden's People

Contributors

chesire avatar dependabot[bot] avatar

Watchers

 avatar  avatar

eden's Issues

Upload test results artifact

Add a stage to CI to upload the test results as an artifact.
This could then be used by Danger to produce warnings if need be.

Add fetch-depth for Danger job

The Danger job can fail if there isn't a fetch-depth due to some issues with how it gets a shallow clone. Source danger/issues/913.

Changing the Danger job to have

    - uses: actions/checkout@v2
      with:
        fetch-depth: 100

should fix the issue

Add code coverage generation

Add ability to generate code coverage as jacoco reports.
Add uploading this to codecov via the github actions.

Run ktlint on pre-push

Ensure code is compliant with ktlint before pushing, can be added to the husky scripts

Add Jacoco example

Add an example gradle file for Jacoco, much like detekt and ktlint samples.

Add deploy stage to CI

Add something to the github actions so that there is a sample deploy stage. As part of this, the readme should be updated to mention to add the required secrets.

  deploy:
    if: startsWith(github.ref, 'refs/tags/*')
    needs: [test, analyze]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: set up JDK 1.8
      uses: actions/[email protected]
      with:
        java-version: 1.8
    - name: Fetch tags
      run: git fetch origin 'refs/tags/*:refs/tags/*'
    - name: run assembleDebug
      run: ./gradlew assembleDebug
    - name: Set env
      run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
    - name: Deploy
      run: ./gradlew bintrayUpload -PbintrayUser=${{ secrets.BINTRAY_USER_ID }} -PbintrayKey=${{ secrets.BINTRAY_API_KEY }} -PpublishVersion=${{ env.RELEASE_VERSION }} -PdryRun=false

Change from using Danger action

Remove the usage of the Danger action, and instead run Danger manually.

    - uses: actions/[email protected]
      with:
        ruby-version: '2.6'
    - uses: actions/[email protected]
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-gems-
    - name: bundle install
      run: |
        gem install bundler
        bundle config path vendor/bundle
        bundle install --without=documentation --jobs 4 --retry 3
    - name: danger
      run: bundle exec danger
      env:
        DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}

Make CI build master

Currently CI only builds on branches, it would be beneficial if it ran on master as well.

Add more Danger items

More items could be used with Danger to report failures.
JUnit failures could be reported on the PR for when tests are skipped or failed.
Markdown could be validated to ensure there are no errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.