Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build and Deploy

on:
push:
branches: [main]

jobs:
quality-checks:
uses: ./.github/workflows/quality-checks.yml

# add steps to deploy to AWS with terraform
8 changes: 8 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Pull Request Validation

on:
pull_request:

jobs:
quality-checks:
uses: ./.github/workflows/quality-checks.yml
64 changes: 64 additions & 0 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Quality Checks

on:
workflow_call:

jobs:
lint-types:
name: Typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: bahmutov/npm-install@v1

- name: Typescript
run: npm run lint:types

lint:
name: Lint
runs-on: ubuntu-latest
needs: [lint-types]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: bahmutov/npm-install@v1

- name: Eslint
run: npm run lint:check

format:
name: Format
runs-on: ubuntu-latest
needs: [lint-types, lint]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: bahmutov/npm-install@v1

- name: Prettier
run: npm run format:check

test:
name: Test
runs-on: ubuntu-latest
needs: [lint-types, lint, format]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: bahmutov/npm-install@v1

- name: Jest
run: npm run test

build:
name: Build
runs-on: ubuntu-latest
needs: [lint-types, lint, format, test]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: bahmutov/npm-install@v1

- name: Build project
run: npm run build
Loading