Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action quality checks. #71

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Quality

on:
push:
branches: ['main']
pull_request:
types: [opened, synchronize]

jobs:
quality:
name: Quality checks
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Setup Node.js environment
uses: actions/setup-node@v3

- name: Install global turbo
run: yarn global add turbo

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run quality checks
run: turbo run lint check-types
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exceptions.log
error.log
combined.log
/tools/output
tsconfig.tsbuildinfo

# System Files
.DS_Store
Expand All @@ -53,4 +54,7 @@ Thumbs.db
migrations.json

# Shouldn't happen, but backup since we have a script that generates these locally
*.pem
*.pem

# Turborepo
.turbo
8 changes: 8 additions & 0 deletions apps/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe/client-app",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
8 changes: 8 additions & 0 deletions apps/e2e/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe/e2e-app",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
8 changes: 8 additions & 0 deletions apps/server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe/server-app",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty -p tsconfig.app.json"
}
}
8 changes: 8 additions & 0 deletions apps/workers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe/workers-app",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty -p tsconfig.app.json"
}
}
8 changes: 8 additions & 0 deletions libs/client/features/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe/client-features-lib",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
8 changes: 8 additions & 0 deletions libs/client/shared/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe/client-shared-lib",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
4 changes: 4 additions & 0 deletions libs/design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "@maybe-finance/design-system",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
},
"nx": {
"targets": {
"build": {
Expand Down
8 changes: 8 additions & 0 deletions libs/finicity-api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe-finance/finicity-api",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
8 changes: 8 additions & 0 deletions libs/server/features/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe-finance/server-features-lib",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
8 changes: 8 additions & 0 deletions libs/server/shared/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe-finance/server-shared-lib",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
8 changes: 8 additions & 0 deletions libs/shared/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@maybe-finance/shared-lib",
"version": "0.0.1",
"scripts": {
"lint": "eslint .",
"check-types": "tsc --noEmit --pretty"
}
}
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
"seed": "ts-node --transpile-only prisma/seed.ts"
},
"private": true,
"workspaces": [
"apps/*",
"libs/client/*",
"libs/design-system",
"libs/finicity-api",
"libs/server/*",
"libs/shared"
],
"dependencies": {
"@auth/prisma-adapter": "^1.0.14",
"@bull-board/express": "^4.6.4",
Expand Down Expand Up @@ -247,6 +255,7 @@
"ts-jest": "28.0.5",
"ts-node": "10.9.1",
"ts-toolbelt": "^9.6.0",
"turbo": "^1.11.3",
"typescript": "4.8.4",
"url-loader": "^4.1.1",
"wait-on": "^6.0.1",
Expand Down
7 changes: 7 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"check-types": {},
"lint": {}
}
}
42 changes: 42 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19374,6 +19374,48 @@ tunnel-agent@^0.6.0:
dependencies:
safe-buffer "^5.0.1"

[email protected]:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.11.3.tgz#fb51f6fa030ee7a169d383b5f4f7641df6a3bdb8"
integrity sha512-IsOOg2bVbIt3o/X8Ew9fbQp5t1hTHN3fGNQYrPQwMR2W1kIAC6RfbVD4A9OeibPGyEPUpwOH79hZ9ydFH5kifw==

[email protected]:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.3.tgz#f936cc7ba5565bd9be1ddc8ef4f15284044a63a5"
integrity sha512-FsJL7k0SaPbJzI/KCnrf/fi3PgCDCjTliMc/kEFkuWVA6Httc3Q4lxyLIIinz69q6JTx8wzh6yznUMzJRI3+dg==

[email protected]:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.11.3.tgz#86f56a91c05eea512a187079f7f7f860d8168be6"
integrity sha512-SvW7pvTVRGsqtSkII5w+wriZXvxqkluw5FO/MNAdFw0qmoov+PZ237+37/NgArqE3zVn1GX9P6nUx9VO+xcQAg==

[email protected]:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.11.3.tgz#0001dab6ded89154e2a5be21e87720daba953056"
integrity sha512-YhUfBi1deB3m+3M55X458J6B7RsIS7UtM3P1z13cUIhF+pOt65BgnaSnkHLwETidmhRh8Dl3GelaQGrB3RdCDw==

[email protected]:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.11.3.tgz#8d03c4fd8a46b81f2aecf60fc9845674c84d15a8"
integrity sha512-s+vEnuM2TiZuAUUUpmBHDr6vnNbJgj+5JYfnYmVklYs16kXh+EppafYQOAkcRIMAh7GjV3pLq5/uGqc7seZeHA==

[email protected]:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.11.3.tgz#cc436d1462f5450e97f985ba6d8d447272bb97db"
integrity sha512-ZR5z5Zpc7cASwfdRAV5yNScCZBsgGSbcwiA/u3farCacbPiXsfoWUkz28iyrx21/TRW0bi6dbsB2v17swa8bjw==

turbo@^1.11.3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.11.3.tgz#3bd823043585e1acfe125727bcecd4f91ef2103b"
integrity sha512-RCJOUFcFMQNIGKSjC9YmA5yVP1qtDiBA0Lv9VIgrXraI5Da1liVvl3VJPsoDNIR9eFMyA/aagx1iyj6UWem5hA==
optionalDependencies:
turbo-darwin-64 "1.11.3"
turbo-darwin-arm64 "1.11.3"
turbo-linux-64 "1.11.3"
turbo-linux-arm64 "1.11.3"
turbo-windows-64 "1.11.3"
turbo-windows-arm64 "1.11.3"

tweetnacl@^0.14.3, tweetnacl@~0.14.0:
version "0.14.5"
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
Expand Down