Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing unnecessary functions and adding node workflow #2

Merged
merged 11 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: NODE

on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:

jobs:
npm-test:
name: NPM Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Run npm test in garaga_ts
working-directory: tools/npm/garaga_ts
run: |
npm ci
npm test
4 changes: 2 additions & 2 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
working-directory: tools/npm/garaga_ts
run: |
docker compose up --build --exit-code-from app
git status --porcelain | grep -v 'src/wasm/pkg/' || true
[[ -z $(git status --porcelain | grep -v 'src/wasm/pkg/') ]]
git status --porcelain
[[ -z $(git status --porcelain ) ]]
- name: Upload package file as artifact
uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ repos:
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: ^tools/npm/garaga_ts/src/wasm/pkg/
- id: end-of-file-fixer
exclude: \.cairo$
exclude: (\.cairo$|^tools/npm/garaga_ts/src/wasm/pkg/)
- id: check-yaml
- id: check-toml
- repo: https://github.com/psf/black
Expand Down
1 change: 1 addition & 0 deletions tools/npm/garaga_ts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/dist
/*.tgz
/coverage
506 changes: 0 additions & 506 deletions tools/npm/garaga_ts/coverage/clover.xml

This file was deleted.

224 changes: 0 additions & 224 deletions tools/npm/garaga_ts/coverage/lcov-report/base.css

This file was deleted.

87 changes: 0 additions & 87 deletions tools/npm/garaga_ts/coverage/lcov-report/block-navigation.js

This file was deleted.

Binary file removed tools/npm/garaga_ts/coverage/lcov-report/favicon.png
Binary file not shown.
1 change: 0 additions & 1 deletion tools/npm/garaga_ts/coverage/lcov-report/prettify.css

This file was deleted.

2 changes: 0 additions & 2 deletions tools/npm/garaga_ts/coverage/lcov-report/prettify.js

This file was deleted.

Binary file not shown.
Loading
Loading