Skip to content

Commit

Permalink
Merge pull request #5 from bashleigh/feature/actions-1
Browse files Browse the repository at this point in the history
chore: testing actions
  • Loading branch information
bashleigh authored Jan 4, 2021
2 parents 930800c + 6120c0f commit 4a15109
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is a basic workflow to help you get started with Actions

name: Tests

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
COMPOSE_FILE: ./docker-compose.yml

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: env sync
run: cp .env.dist .env && export $(cat ./.env | xargs)

# Runs a single command using the runners shell
- name: build docker db
run: docker-compose up -d

- name: install
run: yarn install --ignore-scripts

- name: build
run: yarn build

- name: check docker
run: docker-compose up -d

# Runs a set of commands using the runners shell
- name: tests
run: yarn test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# typeorm-polymorphic
<a href="https://www.npmjs.com/package/typeorm-polymorphic"><img src="https://img.shields.io/npm/v/typeorm-polymorphic.svg"/></a>
<a href="https://travis-ci.org/nestjsx/typeorm-paginate"><img src="https://travis-ci.org/nestjsx/typeorm-paginate.svg?branch=master"/></a>
<img src="https://github.com/bashleigh/typeorm-polymorphic/workflows/tests/badge.svg"/>
<img src="https://camo.githubusercontent.com/a34cfbf37ba6848362bf2bee0f3915c2e38b1cc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265" />

An extension package for polymorphic relationship management, declaration and repository queries for [typeorm](https://typeorm.io/)
Expand Down

0 comments on commit 4a15109

Please sign in to comment.