Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Presents CI/CD pipeline patterns for GitHub Actions and GitLab CI, covering testing strategies and deployment automation.
Use this skill ↓73% 82%+9 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 16 of 22 without it.
In our GitHub Actions workflow, our integration tests fail because the database service container isn't ready when test execution starts. How should the Postgres service container options be configured in the test job?
Uses postgres:16 container image
3 of 3 safety checks passed
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
test:
runs-on: ubuntu-latest
needs: lint
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports: ["5432:5432"]
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.