chore(deps): Bump mamba-org/setup-micromamba from 1.7.3 to 1.8.0 (#289) #1420
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: CI | |
permissions: write-all | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.comment.body }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit-checks: | |
name: Pre-commit Checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: micromamba installation | |
uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 | |
- name: add micromamba to GITHUB_PATH | |
run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH" | |
- name: pnpm installation | |
uses: pnpm/action-setup@v2.4.0 | |
with: | |
version: 8 | |
- name: Set up node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: dependency installation | |
run: pnpm install --frozen-lockfile | |
- name: Run pre-commit checks | |
uses: pre-commit/action@v3.0.0 | |
env: | |
PRE_COMMIT_USE_MICROMAMBA: 1 | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
services: | |
postgres-db: | |
image: postgres:16-alpine | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: parma-prod-db | |
POSTGRES_PASSWORD: parma-prod-db | |
POSTGRES_DB: parma-prod-db | |
env: | |
POSTGRES_URL: "postgresql://parma-prod-db:parma-prod-db@localhost:5432/parma-prod-db" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.RH_PAT_FOR_PUSHING }} | |
- uses: pnpm/action-setup@v2.4.0 | |
with: | |
version: 8 | |
- name: node.js setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: dependency installation | |
run: pnpm install --frozen-lockfile | |
- name: Db model generation | |
run: pnpx prisma generate | |
- name: Run migrations | |
run: | | |
pnpx prisma migrate dev | |
pnpm run manual-db-migration | |
- name: Run CI tests | |
run: pnpm run test:ci | |
env: | |
FIREBASE_ADMINSDK_CERTIFICATE: ${{ secrets.STAGING_FIREBASE_ADMINSDK_CERTIFICATE}} | |
GCP_SECRET_MANAGER_CERTIFICATE: ${{ secrets.GCP_SECRET_MANAGER_KEY }} | |
PARMA_ANALYTICS_BASE_URL: http://127.0.0.1:8000 | |
- name: Update badges | |
run: pnpm run make-badges | |
- name: Commit changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Actions" | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Update code cov badges" | |
- name: Push changes | |
run: git push |