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

chore: add basic action workflow #69

Merged
merged 7 commits into from
Feb 16, 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
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build test

env:
CI: false

on:
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npm run build
47 changes: 43 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"react-scripts": "5.0.0",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
},
"scripts": {
"start": "react-scripts --max-old-space-size=8192 start",
"predeploy": "npm run build",
Expand Down
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ class App extends React.Component {
try {
// Abort if error before building Tx
if (!(await builderSuccess)){
throw "Error before building Tx, aborting Tx build."
throw new Error("Error before building Tx, aborting Tx build.")
}
// Initialize builder with protocol parameters
const txBuilder = await this.initTransactionBuilder();
Expand Down Expand Up @@ -851,7 +851,7 @@ class App extends React.Component {
this.setState({cip95MetadataHash : undefined});
this.setState({totalRefunds : undefined});
} else {
throw "Error during submission of transaction"
throw new Error("Error during submission of transaction")
}
} catch (err) {
console.log("Error during build, sign and submit transaction");
Expand Down
Loading