Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

Commit 6580f57

Browse files
committed
Rewrote plaid implementation.
This includes a complete rewrite of how we were accessing plaids API. It removes the plaid_helper package and replaces it with the platypus package. This package only really exposes interfaces externally. Allowing us to make more changes there in our own layer to better support larger API changes in the future. It also includes more code coverage. While the code coverage right now is pretty basic and very happy path, it will help iterate on our plaid code much much faster in the future.
1 parent 9e9ed30 commit 6580f57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2812
-1420
lines changed

.github/workflows/docker-build.yml

-28
This file was deleted.

.github/workflows/docs-deploy.yaml

-23
This file was deleted.

.github/workflows/docs.yml

-17
This file was deleted.

.github/workflows/environments.yaml

+14-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,22 @@ on:
66
workflow_dispatch: { }
77

88
jobs:
9+
release-acceptance:
10+
name: Acceptance
11+
runs-on: ubuntu-latest
12+
container: golang:1.17.1
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
ref: 'main'
17+
- name: fetch
18+
run: git fetch --prune --unshallow
19+
- name: Push To Dog Food
20+
run: git push origin $(go run github.com/monetr/rest-api/tools/releaser --since=-24h):acceptance
921
release-dog:
1022
name: Dog Food
1123
runs-on: ubuntu-latest
12-
container: golang:1.16.3
24+
container: golang:1.17.1
1325
steps:
1426
- uses: actions/checkout@v2
1527
with:
@@ -21,7 +33,7 @@ jobs:
2133
release-production:
2234
name: Production
2335
runs-on: ubuntu-latest
24-
container: golang:1.16.3
36+
container: golang:1.17.1
2537
steps:
2638
- uses: actions/checkout@v2
2739
with:

.github/workflows/go.yml

-48
This file was deleted.

.github/workflows/incoming.yml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: GitHub
2+
3+
on:
4+
push:
5+
branches:
6+
- staging
7+
- trying
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
container: golang:1.17.0
14+
env:
15+
POSTGRES_HOST: postgres
16+
POSTGRES_PASSWORD: ""
17+
POSTGRES_USER: api-testing
18+
POSTGRES_DB: test-db
19+
services:
20+
postgres:
21+
image: postgres:13
22+
env:
23+
POSTGRES_HOST_AUTH_METHOD: trust
24+
POSTGRES_USER: api-testing
25+
POSTGRES_DB: test-db
26+
options: >-
27+
--health-cmd pg_isready
28+
--health-interval 10s
29+
--health-timeout 5s
30+
--health-retries 5
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Dependencies
34+
run: make dependencies
35+
- name: Build
36+
run: make build
37+
- name: Setup Schema
38+
run: make apply-schema-ci
39+
- name: Test
40+
run: make test
41+
pg-test:
42+
name: PostgreSQL Test
43+
runs-on: ubuntu-latest
44+
container: ghcr.io/monetr/pgtest:latest
45+
env:
46+
POSTGRES_HOST: postgres
47+
POSTGRES_PASSWORD: ""
48+
POSTGRES_USER: postgres
49+
POSTGRES_DB: test-db
50+
POSTGRES_HOST_AUTH_METHOD: trust
51+
services:
52+
postgres:
53+
image: ghcr.io/monetr/pgtest:latest
54+
env:
55+
POSTGRES_HOST: postgres
56+
POSTGRES_PASSWORD: ""
57+
POSTGRES_USER: postgres
58+
POSTGRES_DB: test-db
59+
POSTGRES_HOST_AUTH_METHOD: trust
60+
options: >-
61+
--health-cmd pg_isready
62+
--health-interval 10s
63+
--health-timeout 5s
64+
--health-retries 5
65+
steps:
66+
- uses: actions/checkout@v2
67+
- name: Test
68+
run: make pg_test
69+
- name: Publish Test Report
70+
uses: mikepenz/action-junit-report@v2
71+
if: always() # always run even if the previous step fails
72+
with:
73+
report_paths: '/junit.xml'
74+
check_name: 'PostgreSQL Test Summary'
75+
docs-generate:
76+
name: Generate Documentation
77+
runs-on: ubuntu-latest
78+
container: ghcr.io/monetr/build-containers/ubuntu:20.04
79+
steps:
80+
- uses: actions/checkout@v2
81+
- run: yarn install
82+
- run: make dependencies
83+
- run: make docs
84+
- run: $GITHUB_WORKSPACE/node_modules/.bin/redoc-cli bundle $GITHUB_WORKSPACE/docs/swagger.yaml -o $GITHUB_WORKSPACE/docs/index.html
85+
docker:
86+
needs:
87+
- test
88+
name: Docker
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v2
92+
- name: Set up QEMU
93+
uses: docker/setup-qemu-action@v1
94+
- name: Set up Docker Buildx
95+
uses: docker/setup-buildx-action@v1
96+
- name: Build Image
97+
id: docker_build
98+
uses: docker/build-push-action@v2
99+
with:
100+
push: false
101+
tags: containers.monetr.dev/rest-api
102+

.github/workflows/main.yaml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
container: golang:1.17.0
13+
env:
14+
POSTGRES_HOST: postgres
15+
POSTGRES_PASSWORD: ""
16+
POSTGRES_USER: api-testing
17+
POSTGRES_DB: test-db
18+
services:
19+
postgres:
20+
image: postgres:13
21+
env:
22+
POSTGRES_HOST_AUTH_METHOD: trust
23+
POSTGRES_USER: api-testing
24+
POSTGRES_DB: test-db
25+
options: >-
26+
--health-cmd pg_isready
27+
--health-interval 10s
28+
--health-timeout 5s
29+
--health-retries 5
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Dependencies
33+
run: make dependencies
34+
- name: Build
35+
run: make build
36+
- name: Setup Schema
37+
run: make apply-schema-ci
38+
- name: Test
39+
run: make test
40+
pg-test:
41+
name: PostgreSQL Test
42+
runs-on: ubuntu-latest
43+
container: ghcr.io/monetr/pgtest:latest
44+
env:
45+
POSTGRES_HOST: postgres
46+
POSTGRES_PASSWORD: ""
47+
POSTGRES_USER: postgres
48+
POSTGRES_DB: test-db
49+
POSTGRES_HOST_AUTH_METHOD: trust
50+
services:
51+
postgres:
52+
image: ghcr.io/monetr/pgtest:latest
53+
env:
54+
POSTGRES_HOST: postgres
55+
POSTGRES_PASSWORD: ""
56+
POSTGRES_USER: postgres
57+
POSTGRES_DB: test-db
58+
POSTGRES_HOST_AUTH_METHOD: trust
59+
options: >-
60+
--health-cmd pg_isready
61+
--health-interval 10s
62+
--health-timeout 5s
63+
--health-retries 5
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Test
67+
run: make pg_test
68+
- name: Publish Test Report
69+
uses: mikepenz/action-junit-report@v2
70+
if: always() # always run even if the previous step fails
71+
with:
72+
report_paths: '/junit.xml'
73+
check_name: 'PostgreSQL Test Summary'
74+
docs-deploy:
75+
needs:
76+
- test
77+
name: Deploy Documentation
78+
runs-on: ubuntu-latest
79+
container: ghcr.io/monetr/build-containers/ubuntu:20.04
80+
steps:
81+
- uses: actions/checkout@v2
82+
- run: yarn install
83+
- run: make dependencies
84+
- run: make docs
85+
- run: $GITHUB_WORKSPACE/node_modules/.bin/redoc-cli bundle $GITHUB_WORKSPACE/docs/swagger.yaml -o $GITHUB_WORKSPACE/docs/index.html
86+
- name: Deploy
87+
uses: JamesIves/[email protected]
88+
with:
89+
branch: gh-pages
90+
folder: docs

.github/workflows/release.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Daily Release
22

33
on:
4-
schedule:
5-
- cron: 0 23 * * *
4+
push:
5+
branches:
6+
- acceptance
67
workflow_dispatch: { }
78

89
jobs:

0 commit comments

Comments
 (0)