Skip to content

Commit

Permalink
Now every push should initiate a build as a test
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Apr 10, 2024
1 parent f1ade97 commit 1551716
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tests

on: [ push, pull_request ]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v1.4.4
with:
node-version: 18.x
- name: Install Dependencies
run: npm install
- name: Build Kaspian
run: npm run build
2 changes: 1 addition & 1 deletion src/provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ window.addEventListener('kaspa:requestProviders', () => {
})

window.addEventListener('kaspa:connect', (event) => {
// TODO: Dont trust to events from clients
const extensionId = (event as CustomEvent<string>).detail

if (chrome.runtime.id !== extensionId) return
Expand All @@ -32,6 +31,7 @@ window.addEventListener('kaspa:connect', (event) => {
})

window.addEventListener('kaspa:invoke', (event) => {
// TODO: Dont trust to events from clients
const request = (event as CustomEvent<Request<any>>).detail

port.postMessage(request)
Expand Down

0 comments on commit 1551716

Please sign in to comment.