Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adeherysh committed Sep 5, 2024
0 parents commit 05b1431
Show file tree
Hide file tree
Showing 12 changed files with 832 additions and 0 deletions.
Binary file added .github/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @adeherysh
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## What does this PR do?
_Place what this pull request changes and anything affected. If your PR block or require another PR, also need to mention here_

## Why are we doing this? Any context or related work?
_You may put your link or another here_

## Where should a reviewer start?
_optional -- if your changes affected so much files, it is encouraged to give helper for reviewer_

## Screenshots
_optional -- You may put the database, sequence or any diagram needed_

## Manual testing steps?
_Steps to do tests. including all possible that can hape_

## Config changes
_optional -- If there's config changes, put it here_

## Deployment instructions
_optional -- Better to put it if there's some 'special case' for deployment_
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt

- name: Install wasm-pack
run: cargo install wasm-pack

- name: Build WASM package
run: wasm-pack build --target bundler

semgrep:
runs-on: ubuntu-latest
if: github.actor != 'kitabisaengineer' && !endsWith(github.actor, '[bot]')
container:
image: semgrep/semgrep
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run Semgrep
run: semgrep scan --config auto
40 changes: 40 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt

- name: Install wasm-pack
run: cargo install wasm-pack

- name: Build WASM package
run: wasm-pack build --target bundler

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
scope: '@kitabisa'

- name: Install dependencies
working-directory: pkg
run: npm install

- name: Publish to npm
working-directory: pkg
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Please

on:
push:
branches:
- main

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Release please
uses: googleapis/release-please-action@v4
with:
release-type: rust
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 05b1431

Please sign in to comment.