Skip to content

v1.17.0

v1.17.0 #11

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Lint
run: yarn quality:lint
- name: Check circular dependencies
run: yarn quality:circular-deps
- name: Unit tests
run: yarn quality:test
e2e:
runs-on: ubuntu-latest
container:
image: cypress/browsers:22.12.0
options: --user 1001
needs: test
services:
database:
image: postgres:latest
env:
POSTGRES_DB: demo
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: E2E tests
uses: cypress-io/github-action@v6
env:
DATABASE_HOST: database
DATABASE_PORT: 5432
DATABASE_NAME: demo
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
IS_TEST: 1
with:
command: yarn quality:e2e:ci
install: false
publish:
runs-on: ubuntu-latest
needs: [test, e2e]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Publish
run: yarn run publish from-git --yes --no-verify-access
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}