name: Github CI Node.js PostgreSQL
on:
  push:
    branches:
      - feature/github_workflow
      - develop
      - feature/htaccess_passport
  pull_request:
    branches:
      - master
jobs:
  build:
    runs-on: ${{ matrix.operating-system }}
    container:
      image: node:10.16-jessie
    services:
      postgres:
        image: postgres:10.8
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: postgres
        ports:
        - 5432:5432
        # needed because the postgres container does not provide a healthcheck
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
    strategy:
      matrix:
        operating-system: [ubuntu-latest]
        node-version: [16.x]
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup node.js use ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install dependencies
        run: npm install
      - name: Sleep for 3s
        uses: juliangruber/sleep-action@v1
        with:
          time: 3s
      - name: Run testing on github
        run: npm test
        env:
          POSTGRES_HOST: postgres
          POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
      - name: Dir the test dir
        run: tree test

name: Github CI Node.js PostgreSQL
on:
  push:
    branches:
      - feature/github_workflow
  pull_request:
    branches:
      - master
jobs:
  build:
    runs-on: ${{ matrix.operating-system }}
    container:
      image: node:10.16-jessie
    services:
      postgres:
        image: postgres:10.8
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: postgres
        ports:
        - 5432:5432
        # needed because the postgres container does not provide a healthcheck
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
    strategy:
      matrix:
        operating-system: [ubuntu-latest]
        node-version: [16.x]
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup node.js use ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install dependencies
        run: npm install
      - name: Sleep for 3s
        uses: juliangruber/sleep-action@v1
        with:
          time: 3s
      - name: Run testing on github
        run: npm test
        env:
          POSTGRES_HOST: postgres
          POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
      - name: Dir the test dir
        run: tree test

Disable Github Workflow, not working with selium yet
Disable Github Workflow, not working with selium yet
