Skip to content

Commit

Permalink
Add build action.
Browse files Browse the repository at this point in the history
  • Loading branch information
supnate committed Mar 17, 2024
1 parent d214ef1 commit 3967191
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This is a basic workflow to help you get started with Actions

name: unit-tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches:
- main
paths:
- 'packages/nice-form-react/src/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.13.0

- uses: pnpm/action-setup@v3
with:
version: 8

# Install dependencies
- name: Install dependencies
run: pnpm i

# Build API docs and examples
- name: build
run: pnpm build
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
While there're already some form libraries/frameworks focus on state management or reuseful components, NiceForm mainly focus on form layout, conditionally show/hide form fields, switch view/edit modes, etc, in a meta based approach.

[![NPM](https://img.shields.io/npm/v/@ebay/nice-form-react.svg)](https://www.npmjs.com/package/@ebay/nice-form-react)
![build](https://github.com/ebay/nice-form-react/actions/workflows/build.yml/badge.svg?branch=main)
![unit-tests](https://github.com/ebay/nice-form-react/actions/workflows/unit-tests.yml/badge.svg?branch=main)
[![Coverage](https://coveralls.io/repos/eBay/nice-form-react/badge.svg?branch=main&service=github)](https://coveralls.io/github/eBay/nice-form-react?branch=main)
[![Demo](https://img.shields.io/badge/demo-link-orange.svg)](https://ebay.github.io/nice-form-react/)
[![CodeQL Scan](https://github.com/ebay/nice-form-react/actions/workflows/codeql.yml/badge.svg)](https://github.com/ebay/nice-form-react/actions/workflows/codeql.yml)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/eBay/nice-form-react/blob/main/LICENSE.md)
Expand Down

0 comments on commit 3967191

Please sign in to comment.