From 529ae14586af538d17847e278154e6b013d9bf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lui=CC=81s=20Arteiro?= Date: Fri, 19 May 2023 18:44:24 +0100 Subject: [PATCH] feat: Adding CI to both packages. #10 --- .github/workflows/dart.yml | 32 ++++++++++++++++++++++++ .github/workflows/{ci.yml => elixir.yml} | 0 README.md | 6 +++-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dart.yml rename .github/workflows/{ci.yml => elixir.yml} (100%) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000..1cb973f --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,32 @@ +name: Dart CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + + # Installing Flutter because it's easier to generate .lcov files for test coverage + - name: Install Flutter + uses: subosito/flutter-action@v2 + + - name: Install dependencies + run: dart pub get + + # Your project will need to have tests in test/ and a dependency on + # package:test for this step to succeed. Note that Flutter projects will + # want to change this to 'flutter test'. + - name: Run tests + run: flutter test --coverage + + - uses: codecov/codecov-action@v2 + with: + files: coverage/lcov.info + verbose: true # optional (default = false) \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/elixir.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/elixir.yml diff --git a/README.md b/README.md index 5106384..c1d00c7 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,11 @@ # `statuses` -![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/dwyl/statuses/ci.yml?label=build&style=flat-square&branch=main) +![Elixir Build Status](https://img.shields.io/github/actions/workflow/status/dwyl/statuses/elixir.yml?label=Elixir&style=flat-square) +![Dart Build Status](https://img.shields.io/github/actions/workflow/status/dwyl/statuses/dart.yml?label=Dart&style=flat-square) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/statuses/main.svg?style=flat-square)](http://codecov.io/github/dwyl/statuses?branch=main) [![Hex.pm](https://img.shields.io/hexpm/v/statuses?color=brightgreen&style=flat-square)](https://hex.pm/packages/statuses) +[![pub package](https://img.shields.io/pub/v/statuses.svg?color=brightgreen&style=flat-square)](https://pub.dev/packages/statuses) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/dwyl/statuses#contributing) [![HitCount](http://hits.dwyl.com/dwyl/statuses.svg)](http://hits.dwyl.com/dwyl/statuses) @@ -102,4 +104,4 @@ final statusesArray = Statuses.list() ``` Documentation available at: -[hexdocs.pm/statuses](https://hexdocs.pm/statuses) +[pub.dev/packages/statuses](https://pub.dev/packages/statuses)