Skip to content

Commit

Permalink
feat: release API v2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: API v1 endpoints are no longer totally compatible, you should upgrade to v2
  • Loading branch information
jonahsnider authored Feb 21, 2021
1 parent bc36013 commit aff7bb8
Show file tree
Hide file tree
Showing 67 changed files with 12,286 additions and 972 deletions.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.github
.vscode
node_modules
tsc_output
.editorconfig
*.env
.gitignore
.prettierignore
app.json
openapi.yml
prettier.config.js
renovate.json
*.log
11 changes: 9 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
root = true

[*]
indent_style = space
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
insert_final_newline = true

[*.{y,ya}ml]
indent_style = space

[*.sql]
indent_style = space
indent_size = 4
5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

6 changes: 3 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: pizzafox # Replace with a single Patreon username
open_collective: zws # Replace with a single Open Collective username
patreon: pizzafox
open_collective: zws
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with a single custom sponsorship URL
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
142 changes: 142 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
name: CI

on: [push, pull_request]

jobs:
build:
name: Build

runs-on: ubuntu-latest

steps:
- name: Checkout git repository
uses: actions/checkout@v2
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Compile TypeScript
run: yarn run build
- name: Upload compiled TypeScript
uses: actions/upload-artifact@v2
with:
name: tsc_output
path: tsc_output
lint:
name: Lint

runs-on: ubuntu-latest

steps:
- name: Checkout git repository
uses: actions/checkout@v2
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Lint
run: yarn run lint
lint-dockerfile:
name: Lint Dockerfile

runs-on: ubuntu-latest

steps:
- name: Checkout git repository
uses: actions/checkout@v2
- name: Lint Dockerfile
uses: brpaz/[email protected]
with:
dockerfile: 'Dockerfile'
style:
name: Check style

runs-on: ubuntu-latest

steps:
- name: Checkout git repository
uses: actions/checkout@v2
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Check style
run: yarn run style
style-prisma:
name: Check style of Prisma schema

runs-on: ubuntu-latest

steps:
- name: Checkout git repository
uses: actions/checkout@v2
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Check style with Prisma CLI
run: yarn run prisma format && git diff --exit-code -s prisma/schema.prisma
deploy:
name: Deploy

runs-on: ubuntu-latest

# Don't run this job if we aren't on master branch
# `semantic-release` will do this automatically, but this saves us the time of building the image prior to that
if: ${{ github.ref == 'refs/heads/master' }}

needs: [build, lint, lint-dockerfile]

steps:
- name: Checkout git repository
uses: actions/checkout@v2
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Deploy
run: yarn run deploy
env:
DOCKER_USERNAME: pizzafox
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67 changes: 67 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'CodeQL'

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '27 15 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
35 changes: 0 additions & 35 deletions .github/workflows/workflow.yml

This file was deleted.

Loading

0 comments on commit aff7bb8

Please sign in to comment.