Update typescript-eslint monorepo to v8 (major) #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Docker | |
on: | |
push: | |
branches: ["main", "prod"] | |
paths: | |
- "Dockerfile" | |
- "src/package.json" | |
- "src/package-lock.json" | |
- "src/prisma/**" | |
- "public/**" | |
- "src/tailwind.config.js" | |
- "src/tsconfig.json" | |
- "**/*.js" | |
- "**/*.ts" | |
- "**/*.tsx" | |
- "**/*.css" | |
pull_request: | |
branches: ["main", "prod"] | |
paths: | |
- "Dockerfile" | |
- "src/package.json" | |
- "src/package-lock.json" | |
- "src/prisma/**" | |
- "public/**" | |
- "src/tailwind.config.js" | |
- "src/tsconfig.json" | |
- "**/*.js" | |
- "**/*.ts" | |
- "**/*.tsx" | |
- "**/*.css" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Create .env | |
run: touch .env | |
- name: Build the Docker image | |
run: docker compose -f docker-compose.prod.yml build --no-cache --force-rm | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Create .env | |
run: cp .env.example .env | |
- name: Test the Docker image | |
run: docker compose -f docker-compose.prod.yml up -d |