Files
groups/.github/workflows/coveralls.yaml
r1oga 1610d66b4e feat:refactor: deploy api (whitelist/user) as express server (#29)
* feat: accept post requests parameters (since, until ...) (#15)

* test committer group handler happy path

* test committers group handler params validation

* test voters group handler

* test posting with since/until string parameters

* update serverless functions

* undo renaming of test setup file

* update gh workflows to include push/pr to staging branch

* chore: format/lint (#16)

* update jest configs

* format/lint

* update test.ci script

* refactor: serve whitelisted orgs (#19)

* feat: accept post requests parameters (since, until ...) (#18)

* feat: accept post requests parameters (since, until ...) (#15)

* test committer group handler happy path

* test committers group handler params validation

* test voters group handler

* test posting with since/until string parameters

* update serverless functions

* undo renaming of test setup file

* update gh workflows to include push/pr to staging branch

* chore: format/lint (#16)

* update jest configs

* format/lint

* update test.ci script

* feat:test: define gql, gh, snapshot repositories

* refactor: Get contributed repo by user and repos by org

* feat: get repos of multiple orgs

* refactor SnapshotRepository

* chore: use barrels

* refactor: get committers by org

* test(whitelist-service): add org

* update graphql files

* test: whitelist service

* test whitelistService.refresh

* fix: decorate WhitelistService with typedi Service

* fix: catch error on fetching repos if org not found

* test prisma db connection

* test refresh whitelist handler

* add refresh serverless function

* refactor: select only some props

* update whitelist service test

* rename file

* stub User service and controller

* rename var, import

* fix compilation errors

* add refresh serverless function

* rename vars

* feat: deploy as express server (#20)

* feat: deploy as express server

* add fly.toml

* feat: Containerize app (#21)

* feat: Containerize app

* Add Dockerfile-deploy (for fly.io deployment)

* Update PORT

* Add deploy workflow

* feat:test: Add get all whitelisted orgs endpoint (#22)

* feat:test: Can return orgs in short (default) or long formats (#23)

* fix paths trigger for GH  deploy workflow

* feat:test: get groups by username (#27)

* define intersect util

* feat:test: define user service

* chore: format

* feat:test: add user controller/service

* refactor:test: whitelist router

* doc: Update README (#28)

* doc: Update README

* update path-ignore

* Update README

* chore: Update deploy workflows

* remove files

* rename workflows
2023-01-31 09:14:59 +00:00

61 lines
1.6 KiB
YAML

name: Coverage Report
on:
# push trigger required to get coveralls monitoring of default branch
# pull_request required to get PR comments
pull_request:
paths-ignore: ['**/*md', '**/*yaml', '**/*yml']
push:
branches: [main, staging]
paths-ignore: ['**/*md', '**/*yaml', '**/*yml']
jobs:
coveralls:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 19
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm i --ignore-scripts --reporter=silent
- name: Generate prisma models
run: pnpm run nps db.gen-schema
- name: Test
env:
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
TZ: UTC
run: pnpm run nps t.ci
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info