add next.js ci
This commit is contained in:
parent
9c8113092c
commit
ccd52782a1
2 changed files with 23 additions and 3 deletions
20
.github/workflows/ci.yml
vendored
Normal file
20
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
timeout-minutes: 60
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "16.x"
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run next.js build
|
||||
run: npm run build
|
|
@ -1,10 +1,10 @@
|
|||
import { useAtom, atom, PrimitiveAtom } from "jotai";
|
||||
import { useAtom } from "jotai";
|
||||
import type { NextPage } from "next";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { SyntheticEvent, useState } from "react";
|
||||
import { Form } from "react-bootstrap";
|
||||
import NumberEditBox from "../components/NumberEditBox";
|
||||
import ReceiptItem, { IReceiptItem } from "../components/ReceiptItem";
|
||||
import ReceiptItem from "../components/ReceiptItem";
|
||||
import { moneyFormatter } from "../lib/formatter";
|
||||
import { ParsedInputDisplay } from "../lib/parseInput";
|
||||
import {
|
||||
|
@ -51,7 +51,7 @@ const Home: NextPage = () => {
|
|||
if (isAddCalled.current) {
|
||||
updateDb();
|
||||
}
|
||||
}, [receiptJSONString]);
|
||||
}, [receiptJSONString, receiptJson]);
|
||||
|
||||
return (
|
||||
<main>
|
||||
|
|
Loading…
Reference in a new issue