Skip to content

Commit

Permalink
Feat/ci checks (#26)
Browse files Browse the repository at this point in the history
* test: husky integration check

* build: add ci-checks in github workflow

* Apply suggestions from Daniel in code review

Co-authored-by: Daniel Lenksjö <5889538+lenkan@users.noreply.github.com>

* fix: add single job for main.yml

* feat: add prettierignore file

* fix: format check instead of overwrite

---------

Co-authored-by: Daniel Lenksjö <5889538+lenkan@users.noreply.github.com>
  • Loading branch information
HunnySajid and lenkan authored Sep 16, 2024
1 parent 7f9781e commit 448b5fe
Show file tree
Hide file tree
Showing 10 changed files with 622 additions and 18 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI Workflow

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Dependencies
run: npm ci

- name: Run ESLint
run: npm run lint

- name: Run Prettier Formatter
run: npm run format:check

- name: Check TypeScript Types
run: npm run tsc

- name: Run Tests
run: npm run test

- name: Build Application
run: npm run build
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npx lint-staged
npm run test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
examples
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# polaris-web


## Getting started
## Getting started

See [web-react](./examples/web-react/src/App.tsx) for an example react web app that uses this library to communicate with a signify browser extension.

Expand All @@ -10,7 +9,6 @@ To test the example,
- `npm install`
- `npm -w web-react start`


To view generated documentation,

- `npm install`
Expand Down
Loading

0 comments on commit 448b5fe

Please sign in to comment.