Skip to content

Commit

Permalink
Merge pull request #1 from sg-milad/feat/githubAction
Browse files Browse the repository at this point in the history
Add github action
  • Loading branch information
sg-milad authored Aug 21, 2024
2 parents 31f55db + b854781 commit 7d615b0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @sg-milad
48 changes: 48 additions & 0 deletions .github/workflows/app-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Unit Tests - Ton payment

on:
push:
branches:
- "*"
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install

- name: Run Tests
run: pnpm run test

0 comments on commit 7d615b0

Please sign in to comment.