Skip to content

Commit

Permalink
fix: improve pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Dec 16, 2023
1 parent 548ef87 commit 92cd8fd
Show file tree
Hide file tree
Showing 8 changed files with 4,585 additions and 2,432 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name: Continuous integration

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-wallet-sdk
group: ${{ github.head_ref }}${{ github.ref }}-pluto
cancel-in-progress: true
on:
pull_request:
branches:
- master
- '*'

jobs:
build-and-test:
Expand All @@ -25,14 +25,29 @@ jobs:
with:
node-version: "lts/*"

- name: Install
run: npm install

- name: Build
run: npm run build

- name: Run coverage test
run: npm run coverage
- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: CI TASK
env:
GH_TOKEN: ${{ secrets.PLUTO_GITHUB }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npm run coverage
npm run docs
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(docs): Rebuild docs [skip ci]"
commit_author: "Javier Ribó"
commit_user_name: "Javier Ribó"
commit_user_email: "elribonazo@gmail.com"

- name: Coverage Comment
uses: MishaKav/jest-coverage-comment@v1.0.23
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
run: |
npm ci
npm run release
npm run docs
git config user.name "Francisco Javier Ribó Labrador"
git config user.email "elribonazo@gmail.com"
git add -A
git commit -S -m "feat(docs): Commit changes [skip ci]"
git push --no-sign --force


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ const database = db = await Database.createEncrypted(
## QA
| Statements | Branches | Functions | Lines |
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
| ![Statements](https://img.shields.io/badge/statements-67.65%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-51.85%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-63.09%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-67.29%25-red.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-94.5%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-88.88%25-yellow.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-92.85%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-94.23%25-brightgreen.svg?style=flat) |
Loading

0 comments on commit 92cd8fd

Please sign in to comment.