Rewrite maintaince worker to use tasks #29
Workflow file for this run
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: test | |
on: | |
workflow_call: | |
pull_request: | |
branches: | |
- "main" | |
paths-ignore: | |
- 'docs/**' | |
- 'example/**' | |
- '**/*.md' | |
jobs: | |
# Label of the container job | |
test: | |
# Containers must run in Linux based operating systems | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
# Service containers to run with `container-job` | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres:14 | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: ci | |
ports: | |
# Maps tcp port 5432 on service container to the host | |
- 5432:5432 | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- run: yarn tc | |
- run: yarn test | |
env: | |
PG: postgres://postgres:postgres@localhost:5432/ci | |
- name: ✅ Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |