Skip to content

fix(ci): skip Slack notify steps when SLACK_WEBHOOK_URL is unset #1119

fix(ci): skip Slack notify steps when SLACK_WEBHOOK_URL is unset

fix(ci): skip Slack notify steps when SLACK_WEBHOOK_URL is unset #1119

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
jobs:
test-nextjs:
name: Test and Lint Next.js
runs-on: ubuntu-latest
env:
POSTGRES_URL: postgres://postgres:postgres@localhost:5432/postgres
services:
postgres:
image: postgres:16.4-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v6
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: '.bun-version'
- name: Cache Bun
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install
- name: Copy environment variables
run: cp .env.example .env
- name: Run ESLint
run: bun run lint
- name: Run TypeScript type checking
run: bun run typecheck
- name: Check code formatting
run: bun run format:check
- name: Run tests
run: bun run test
- name: Run Knip
run: bun run knip
- name: Build application
run: bun run build