mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-28 19:06:12 +01:00
aee470a7d6
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://togithub.com/actions/setup-node) | action | major | `v3` -> `v4` | --- ### Release Notes <details> <summary>actions/setup-node (actions/setup-node)</summary> ### [`v4`](https://togithub.com/actions/setup-node/compare/v3...v4) [Compare Source](https://togithub.com/actions/setup-node/compare/v3...v4) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am every weekday" in timezone Europe/Madrid, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
name: Test & Coverage
|
|
|
|
on:
|
|
# pull_request:
|
|
# paths-ignore:
|
|
# - frontend/**
|
|
# - website/**
|
|
schedule: # Run every day
|
|
- cron: '0 8 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: build (18.x) # temporary solution to trick branch protection rules
|
|
|
|
services:
|
|
# Label used to access the service container
|
|
postgres:
|
|
# Docker Hub image
|
|
image: postgres
|
|
# Provide the password for postgres
|
|
env:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_INITDB_ARGS: "--no-sync"
|
|
# Set health checks to wait until postgres has started
|
|
ports:
|
|
- 5432:5432
|
|
options: >-
|
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
|
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js 18.x
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18.x
|
|
cache: 'yarn'
|
|
- name: Tests on 18.x
|
|
id: coverage
|
|
uses: ArtiomTr/jest-coverage-report-action@v2
|
|
with:
|
|
annotations: none
|
|
package-manager: yarn
|
|
test-script: yarn run test:coverage:jest
|
|
base-coverage-file: ./coverage/report.json
|
|
output: report-markdown
|
|
env:
|
|
CI: true
|
|
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
|
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
|
NODE_ENV: test
|
|
PORT: 4243
|
|
# - name: Report coverage on ${{ matrix.node-version }}
|
|
# uses: marocchino/sticky-pull-request-comment@v2
|
|
# with:
|
|
# # pass output from the previous step by id.
|
|
# message: ${{ steps.coverage.outputs.report }}
|