Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
Migrate workflows from circleci to github action (#1)
Browse files Browse the repository at this point in the history
Migrate workflow from `circleci` to `github action` for a maintenance issues.
  • Loading branch information
hyochan authored May 30, 2021
1 parent efefb88 commit 123ca0a
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 222 deletions.
215 changes: 0 additions & 215 deletions .circleci/config.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install modules
run: yarn

- name: Lerna init
run: yarn pre

- name: Check linting
run: yarn lint

- name: Build typescript
run: yarn tsc

- name: Build
run: yarn build

- name: Test
run: yarn test --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
path_to_write_report: ./coverage/codecov_report.gz
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: publish-package

on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

[![Npm Version](http://img.shields.io/npm/v/dooboo-ui.svg?style=flat-square)](https://npmjs.org/package/dooboo-ui)
[![Downloads](http://img.shields.io/npm/dm/dooboo-ui.svg?style=flat-square)](https://npmjs.org/package/dooboo-ui)
[![CircleCI](https://circleci.com/gh/dooboolab/dooboo-ui.svg?style=shield)](https://circleci.com/gh/dooboolab/dooboo-ui)
[![codecov](https://codecov.io/gh/dooboolab/dooboo-ui/branch/master/graph/badge.svg)](https://codecov.io/gh/dooboolab/dooboo-ui)
[![CI](https://github.com/dooboolab/dooboo-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/dooboolab/dooboo-ui/actions/workflows/ci.yml)
[![Publish](https://github.com/dooboolab/dooboo-ui/actions/workflows/publish.yml/badge.svg)](https://github.com/dooboolab/dooboo-ui/actions/workflows/publish.yml)
[![codecov](https://codecov.io/gh/dooboolab/dooboo-ui/branch/master/graph/badge.svg?token=ncTMAOVpOM)](https://codecov.io/gh/dooboolab/dooboo-ui)
[![Sponsor](https://opencollective.com/dooboo-ui/tiers/badge.svg?style=shield)](https://opencollective.com/dooboo-ui/tiers/badge.svg)
![License](http://img.shields.io/npm/l/dooboo-ui.svg?style=flat-square)

Expand Down
5 changes: 2 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
codecov:
token: 5bf93db3-06d5-4644-8188-f9de5067953d
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"
range: '70...100'

status:
project: yes
Expand All @@ -22,6 +21,6 @@ parsers:
macro: no

comment:
layout: "header, diff"
layout: 'header, diff'
behavior: default
require_changes: no
5 changes: 3 additions & 2 deletions doc/src/introduce.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ import {Meta} from '@storybook/addon-docs/blocks';

[![Npm Version](http://img.shields.io/npm/v/dooboo-ui.svg?style=flat-square)](https://npmjs.org/package/dooboo-ui)
[![Downloads](http://img.shields.io/npm/dm/dooboo-ui.svg?style=flat-square)](https://npmjs.org/package/dooboo-ui)
[![CircleCI](https://circleci.com/gh/dooboolab/dooboo-ui.svg?style=shield)](https://circleci.com/gh/dooboolab/dooboo-ui)
[![codecov](https://codecov.io/gh/dooboolab/dooboo-ui/branch/master/graph/badge.svg)](https://codecov.io/gh/dooboolab/dooboo-ui)
[![CI](https://github.com/dooboolab/dooboo-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/dooboolab/dooboo-ui/actions/workflows/ci.yml)
[![Publish](https://github.com/dooboolab/dooboo-ui/actions/workflows/publish.yml/badge.svg)](https://github.com/dooboolab/dooboo-ui/actions/workflows/publish.yml)
[![codecov](https://codecov.io/gh/dooboolab/dooboo-ui/branch/master/graph/badge.svg?token=ncTMAOVpOM)](https://codecov.io/gh/dooboolab/dooboo-ui)
![License](http://img.shields.io/npm/l/dooboo-ui.svg?style=flat-square)

We love [react-hooks](https://code.fb.com/open-source/react-hooks) and willing to share our [react-native](https://facebook.github.io/react-native) ui components built in [functional components](https://logrocket.com/blog/pure-functional-components) using hooks. Also the `dooboo-ui` is built on top of our favorite stacks like [emotion](https://emotion.sh/docs/@emotion/native), [typescript](https://www.typescriptlang.org), [jest](https://jestjs.io), [react-testing-library](https://testing-library.com/docs/react-testing-library/intro), [expo](https://expo.io), [storybook](https://storybook.js.org), and so on.
Expand Down

0 comments on commit 123ca0a

Please sign in to comment.