Skip to content

Commit 7232371

Browse files
committed
test: add build & test workflow for web-app and bank2ynab-converter
1 parent bca7ebe commit 7232371

File tree

10 files changed

+4786
-5918
lines changed

10 files changed

+4786
-5918
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test bank2ynab-converter
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [18]
12+
13+
steps:
14+
- uses: actions/[email protected]
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/[email protected]
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install and run
20+
run: |
21+
cd packages/ynap-bank2ynab-converter
22+
yarn install
23+
yarn start
24+
env:
25+
CI: true

.github/workflows/test-parsers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Parsers
1+
name: Test parsers
22

33
on: [push, pull_request]
44

@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [16, 18]
11+
node-version: [18]
1212

1313
steps:
1414
- uses: actions/[email protected]

.github/workflows/test-web-app.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test web-app
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [18]
12+
13+
steps:
14+
- uses: actions/[email protected]
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/[email protected]
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install, Build, and Test
20+
run: |
21+
cd packages/ynap-web-app
22+
yarn install
23+
yarn build
24+
env:
25+
CI: true

packages/ynap-bank2ynab-converter/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"esModuleInterop": true,
77
"resolveJsonModule": true,
88
"outDir": "lib",
9-
"rootDir": "src"
9+
"rootDir": "src",
10+
"skipLibCheck": true
1011
}
1112
}

packages/ynap-parsers/src/util/read-encoded-file.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import chardet from 'jschardet';
22
import { decode } from 'iconv-lite';
3+
import { Buffer } from 'buffer';
34

45
export const readEncodedFile = (file: File, charset?: string): Promise<string> => {
56
return new Promise((res, rej) => {

packages/ynap-parsers/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"esModuleInterop": true,
77
"resolveJsonModule": true,
88
"outDir": "lib",
9-
"rootDir": "src"
9+
"rootDir": "src",
10+
"skipLibCheck": true
1011
}
1112
}

packages/ynap-web-app/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
"license": "MIT",
55
"private": true,
66
"dependencies": {
7-
"@types/jest": "24.9.1",
87
"@types/node": "18.16.15",
9-
"@types/react": "16.14.42",
8+
"@types/jest": "29.5.1",
9+
"@types/react": "18.2.6",
1010
"@types/react-dom": "18.2.4",
1111
"file-saver": "2.0.5",
12-
"gatsby": "2.32.13",
13-
"gatsby-plugin-netlify": "2.11.1",
14-
"gatsby-plugin-offline": "3.10.2",
15-
"gatsby-plugin-react-helmet": "3.10.0",
16-
"gatsby-plugin-styled-components": "3.10.0",
17-
"gatsby-plugin-typescript": "2.12.1",
18-
"react": "16.14.0",
12+
"gatsby": "5.10.0",
13+
"gatsby-plugin-netlify": "5.1.0",
14+
"gatsby-plugin-offline": "6.10.0",
15+
"gatsby-plugin-react-helmet": "6.10.0",
16+
"gatsby-plugin-styled-components": "6.10.0",
17+
"gatsby-plugin-typescript": "5.10.0",
18+
"react": "18.2.0",
1919
"react-dom": "18.2.0",
20-
"react-helmet": "5.2.1",
20+
"react-helmet": "6.1.0",
2121
"react-helmet-async": "1.3.0",
2222
"react-toastify": "9.1.3",
23-
"styled-components": "4.4.1",
23+
"styled-components": "5.3.10",
2424
"ts-node": "10.9.1",
2525
"ynap-parsers": "^1.15.0"
2626
},
@@ -41,14 +41,14 @@
4141
"devDependencies": {
4242
"@types/file-saver": "2.0.5",
4343
"@types/node-fetch": "2.6.4",
44-
"@types/react-helmet": "5.0.21",
45-
"@types/react-helmet-async": "1.0.1",
44+
"@types/react-helmet": "6.1.6",
45+
"@types/react-helmet-async": "1.0.3",
4646
"@types/react-toastify": "4.1.0",
4747
"@types/styled-components": "5.1.26",
4848
"babel-plugin-styled-components": "2.1.3",
4949
"date-fns": "2.30.0",
5050
"encoding": "0.1.13",
51-
"jest": "24.9.0",
51+
"jest": "29.5.0",
5252
"node-fetch": "2.6.11",
5353
"ts-jest": "24.3.0",
5454
"tslint": "5.20.1"

packages/ynap-web-app/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ToastContainer, toast } from 'react-toastify';
66
import 'react-toastify/dist/ReactToastify.css';
77

88
import '../styles/index.css';
9-
import { parseFile, parsers, countries } from 'ynap-parsers';
9+
import { parseFile, parsers, countries } from 'ynap-parsers/src';
1010
import MetaTags from '../components/meta-tags';
1111
import { GitHubBadge } from '../components/github-badge';
1212

packages/ynap-web-app/src/pages/supported-formats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components';
33

44
import '../styles/index.css';
55

6-
import { parsers, countries } from 'ynap-parsers';
6+
import { parsers, countries } from 'ynap-parsers/src';
77
import countryNames from '../util/countries';
88
import MetaTags from '../components/meta-tags';
99
import { Link } from 'gatsby';

0 commit comments

Comments
 (0)