Skip to content

JACoB PR for Issue Improve Jira to GitHub Issue Conversion by Evaluating Issue Quality #920

JACoB PR for Issue Improve Jira to GitHub Issue Conversion by Evaluating Issue Quality

JACoB PR for Issue Improve Jira to GitHub Issue Conversion by Evaluating Issue Quality #920

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
OPENAI_API_KEY: open-ai-key
POSTHOG_API_KEY: posthog-key
NEXTAUTH_SECRET: HXgMk6CxLZ9DY7Siv/pVoA30wRrj5QmvnND9HI4fW/g=
NEXTAUTH_URL: http://localhost:3000
GITHUB_CLIENT_ID: github-client-id
GITHUB_CLIENT_SECRET: github-client-secret
DATABASE_URL: postgres://postgres:postgres@postgres:5432/jacob_dev
DATABASE_TEST_URL: postgres://postgres:postgres@postgres:5432/jacob_test
GITHUB_APP_ID: 123456
GITHUB_PRIVATE_KEY: github-private-key
GITHUB_WEBHOOK_SECRET: github-webhook-secret
PUBSUB_REDIS_URL: redis://localhost:6379/0
PUBSUB_REDIS_TEST_URL: redis://localhost:6379/1
NEXT_PUBLIC_JIRA_CLIENT_ID: sample-client-id
JIRA_CLIENT_ID: sample-client-id
JIRA_CLIENT_SECRET: sample-client-secret
LINEAR_CLIENT_ID: linear-client-id
LINEAR_CLIENT_SECRET: linear-client-secret
LINEAR_WEBHOOK_SECRET: linear-webhook-secret
NEXT_PUBLIC_LINEAR_CLIENT_ID: linear-client-id
jobs:
build:
runs-on: ubuntu-latest
container: node:20.11.0
services:
postgres:
image: ankane/pgvector:v0.5.0
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: .tool-versions
cache: "npm"
- uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}-
- run: npm install
- run: npm run typecheck
- run: npm run build
- run: npm run db create
- run: npm run db migrate
- run: npm test