Giter Site home page Giter Site logo

noga-dev / prepub Goto Github PK

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

[Indefinitely Abandoned] This is a companion package for Dart/Flutter package maintainers to help with automating some processes and ensuring a certain format standard.

License: MIT License

Dart 24.22% CSS 13.91% HTML 61.87%

prepub's Introduction

Prepub (WIP)

Description

This is a companion package for Dart/Flutter package maintainers to help with automating some processes and ensuring a certain format standard. Originally made for Remi Rousellet's needs, but can be adopted by any package maintainer.

Currently in testing status. Do not depend on this package.

Example usage

WIP workflow for Riverpod:

name: Validate changelog format and sync

concurrency: 
  group: ${{ github.ref }}
  cancel-in-progress: true

env:
  IGNORED_PATH_MD: '**.md'
  IGNORED_PATH_MDX: '**.mdx'

on:
  workflow_dispatch:
  pull_request:
    paths-ignore:
      - IGNORED_PATH_MD
      - IGNORED_PATH_MDX
  push:
    branches:
      - master
    paths-ignore:
      - IGNORED_PATH_MD
      - IGNORED_PATH_MDX
  schedule:
    # runs the CI everyday at 10AM
    - cron: "0 10 * * *"

jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
      - uses: actions/checkout@v3

      - name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v32

      - uses: dart-lang/setup-dart@v1

      - name: Add pub cache bin to PATH
        run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

      - name: Add pub cache to PATH
        run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV

      - name: Activate prepub
        run: dart pub global activate prepub # specify 1.0.0?
      - name: Run prepub
        run: |
          dart run bin/main.dart -f "${{ steps.changed-files.outputs.all_changed_files }}"

Codecov

codecov:

dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage --check-ignore && lcov --remove coverage/lcov.info '*/*.g.dart' -o coverage/lcov.info && genhtml -o ./coverage/report ./coverage/lcov.info

prepub's People

Contributors

noga-dev avatar

Watchers

 avatar

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.