Skip to content

fix: security vulnerability in sequelize-typescript <2.1.6 (#83) #143

fix: security vulnerability in sequelize-typescript <2.1.6 (#83)

fix: security vulnerability in sequelize-typescript <2.1.6 (#83) #143

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: mysql --host 127.0.0.1 --port 3306 -uroot -p -e "CREATE DATABASE casbin"
- run: yarn format:check
- run: yarn lint
- run: yarn run jest --coverage --forceExit
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
semantic-release:
needs: [finish, build]
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: Run semantic-release
if: github.repository == 'node-casbin/sequelize-adapter' && github.event_name == 'push'
run: |
yarn install --frozen-lockfile
mysql --host 127.0.0.1 --port 3306 -uroot -p -e "CREATE DATABASE casbin"
yarn run prepack
yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}