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

Commit

Permalink
Merge #302
Browse files Browse the repository at this point in the history
302: Upgrade/plaid v1 r=elliotcourant a=elliotcourant

- [x] Add proper support for creating link tokens.
- [x] Add some way to check for errors from the callers of the interface (plaid errors), or add error state updating of links to the plaid wrapper itself.
- [ ] Add tests that prove a success and a failure path for all endpoints.

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Elliot Courant <[email protected]>
  • Loading branch information
elliotcourant and renovate-bot committed Sep 11, 2021
2 parents dd165c2 + 73c2c5a commit ecc6440
Show file tree
Hide file tree
Showing 78 changed files with 3,012 additions and 1,430 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/docker-build.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/docs-deploy.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/docs.yml

This file was deleted.

16 changes: 14 additions & 2 deletions .github/workflows/environments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ on:
workflow_dispatch: { }

jobs:
release-acceptance:
name: Acceptance
runs-on: ubuntu-latest
container: golang:1.17.1
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
- name: fetch
run: git fetch --prune --unshallow
- name: Push To Dog Food
run: git push origin $(go run github.com/monetr/rest-api/tools/releaser --since=-24h):acceptance
release-dog:
name: Dog Food
runs-on: ubuntu-latest
container: golang:1.16.3
container: golang:1.17.1
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -21,7 +33,7 @@ jobs:
release-production:
name: Production
runs-on: ubuntu-latest
container: golang:1.16.3
container: golang:1.17.1
steps:
- uses: actions/checkout@v2
with:
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/go.yml

This file was deleted.

102 changes: 102 additions & 0 deletions .github/workflows/incoming.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: GitHub

on:
push:
branches:
- staging
- trying

jobs:
test:
name: Test
runs-on: ubuntu-latest
container: golang:1.17.0
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
POSTGRES_USER: api-testing
POSTGRES_DB: test-db
services:
postgres:
image: postgres:13
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: api-testing
POSTGRES_DB: test-db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: make dependencies
- name: Build
run: make build
- name: Setup Schema
run: make apply-schema-ci
- name: Test
run: make test
pg-test:
name: PostgreSQL Test
runs-on: ubuntu-latest
container: ghcr.io/monetr/pgtest:latest
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
POSTGRES_USER: postgres
POSTGRES_DB: test-db
POSTGRES_HOST_AUTH_METHOD: trust
services:
postgres:
image: ghcr.io/monetr/pgtest:latest
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
POSTGRES_USER: postgres
POSTGRES_DB: test-db
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Test
run: make pg_test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: always() # always run even if the previous step fails
with:
report_paths: '/junit.xml'
check_name: 'PostgreSQL Test Summary'
docs-generate:
name: Generate Documentation
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/ubuntu:20.04
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: make dependencies
- run: make docs
- run: $GITHUB_WORKSPACE/node_modules/.bin/redoc-cli bundle $GITHUB_WORKSPACE/docs/swagger.yaml -o $GITHUB_WORKSPACE/docs/index.html
docker:
needs:
- test
name: Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Image
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: containers.monetr.dev/rest-api

90 changes: 90 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Main

on:
push:
branches:
- main

jobs:
test:
name: Test
runs-on: ubuntu-latest
container: golang:1.17.0
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
POSTGRES_USER: api-testing
POSTGRES_DB: test-db
services:
postgres:
image: postgres:13
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: api-testing
POSTGRES_DB: test-db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: make dependencies
- name: Build
run: make build
- name: Setup Schema
run: make apply-schema-ci
- name: Test
run: make test
pg-test:
name: PostgreSQL Test
runs-on: ubuntu-latest
container: ghcr.io/monetr/pgtest:latest
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
POSTGRES_USER: postgres
POSTGRES_DB: test-db
POSTGRES_HOST_AUTH_METHOD: trust
services:
postgres:
image: ghcr.io/monetr/pgtest:latest
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ""
POSTGRES_USER: postgres
POSTGRES_DB: test-db
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Test
run: make pg_test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: always() # always run even if the previous step fails
with:
report_paths: '/junit.xml'
check_name: 'PostgreSQL Test Summary'
docs-deploy:
needs:
- test
name: Deploy Documentation
runs-on: ubuntu-latest
container: ghcr.io/monetr/build-containers/ubuntu:20.04
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: make dependencies
- run: make docs
- run: $GITHUB_WORKSPACE/node_modules/.bin/redoc-cli bundle $GITHUB_WORKSPACE/docs/swagger.yaml -o $GITHUB_WORKSPACE/docs/index.html
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Daily Release

on:
schedule:
- cron: 0 23 * * *
push:
branches:
- acceptance
workflow_dispatch: { }

jobs:
Expand Down
Loading

0 comments on commit ecc6440

Please sign in to comment.