Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohenriquepires committed Jul 25, 2023
1 parent f250173 commit db7c25f
Show file tree
Hide file tree
Showing 24 changed files with 9,503 additions and 4,325 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ jobs:
with:
useLockFile: false

# - name: ▶️ Run tests
# run: npm run test

- name: ▶️ Run build
run: npm run build
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test
on:
push:
branches: [main, development]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2

- name: ⎔ Setup node
uses: actions/setup-node@v1
with:
node-version: '16.x'

- name: 📥 Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: 🧪 Run tests
run: npm run test:once
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div align="center">
<a href="https://pedrohenriquepires.github.io/react-simple-dialogs-docs/docs/getting-started/Introduction" target="_blank"><img src="./docs/logo.svg" width="100%" /></a><br /><br />
<a href="https://github.com/pedrohenriquepires/react-simple-dialogs/actions/workflows/build.yml" target="_blank"><img alt="Build" src="https://github.com/pedrohenriquepires/react-simple-dialogs/actions/workflows/build.yml/badge.svg"></a>
<a href="https://github.com/pedrohenriquepires/react-simple-dialogs/actions/workflows/test.yml" target="_blank"><img alt="Test" src="https://github.com/pedrohenriquepires/react-simple-dialogs/actions/workflows/test.yml/badge.svg"></a>
<img alt="License MIT" src="https://img.shields.io/badge/license-MIT-blue">
<img alt="NPM Downloads" src="https://img.shields.io/npm/dt/react-simple-dialogs">
<img alt="NPM Version" src="https://img.shields.io/npm/v/react-simple-dialogs">
Expand Down

0 comments on commit db7c25f

Please sign in to comment.