test gh actions

This commit is contained in:
Michael Schramm 2022-02-28 07:14:38 +01:00
parent 2edaa79bec
commit 9f667e7eda

View File

@ -20,6 +20,31 @@ jobs:
name: Run linters name: Run linters
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: yarn install --frozen-lockfile --silent
- name: Lint
uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review # Change reporter.
eslint_flags: '{src,test}/**/*.ts'
- name: Typecheck
uses: andoshin11/typescript-error-reporter-action@v1.0.2
run-migrations:
name: Run Migrations
runs-on: ubuntu-latest
services: services:
maria: maria:
@ -46,41 +71,20 @@ jobs:
--health-retries 5 --health-retries 5
steps: steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: yarn install --frozen-lockfile --silent
- name: Lint
uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review # Change reporter.
eslint_flags: '{src,test}/**/*.ts'
- name: Typecheck
uses: andoshin11/typescript-error-reporter-action@v1.0.2
- name: PostgreSQL Migrations - name: PostgreSQL Migrations
run: yarn typeorm migration:run run: yarn typeorm:postgres migration:run
env: env:
DATABASE_DRIVER: postgres DATABASE_DRIVER: postgres
DATABASE_URL: postgresql://root@127.0.0.1:5432/ohmyform DATABASE_URL: postgresql://root@127.0.0.1:5432/ohmyform
- name: MariaDB Migrations - name: MariaDB Migrations
run: yarn typeorm migration:run run: yarn typeorm:mariadb migration:run
env: env:
DATABASE_DRIVER: mariadb DATABASE_DRIVER: mariadb
DATABASE_URL: mysql://root@127.0.0.1:3306/ohmyform DATABASE_URL: mysql://root@127.0.0.1:3306/ohmyform
- name: SQLite Migrations - name: SQLite Migrations
run: yarn typeorm migration:run run: yarn typeorm:sqlite migration:run
env: env:
DATABASE_DRIVER: sqlite DATABASE_DRIVER: sqlite
DATABASE_URL: sqlite://data.sqlite DATABASE_URL: sqlite://data.sqlite