ValeriaVG/nomocms

View on GitHub
.github/workflows/actions.yaml

Summary

Maintainability
Test Coverage
name: NoMoCMS CI
on: [push]
jobs:
  test:
    runs-on: ubuntu-latest
    services:
      postgres:
        image: timescale/timescaledb:2.1.1-pg12
        ports:
          - 5432:5432
        env:
          POSTGRES_DB: nomotest
          POSTGRES_USER: nomocms
          POSTGRES_PASSWORD: nomocms
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js v16.9.1
        uses: actions/setup-node@v2
        with:
          node-version: v16.9.1
      - run: npm ci
      # - name: Migrate Database
      #   run: yarn migrate
      - name: Test & Coverage
        uses: paambaati/codeclimate-action@v3.0.0
        env:
          CC_TEST_REPORTER_ID: fd71960f2e58540b3d99e869cc64077fb49da77f9b69d5e048639e4febadafb0
        with:
          coverageCommand: npm run coverage
          coverageLocations: "./coverage/lcov.info:lcov"