Skip to content

Commit

Permalink
chore(ci): move to github-actions (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik authored Nov 4, 2021
1 parent 3d3f74a commit df09b6c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 36 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

name: CI
on: [push, pull_request]

jobs:
test-postgres:
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14]
name: Postgres (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
env:
DIALECT: postgres
SEQ_PORT: 54320
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install sequelize@latest
- run: npm run build
- run: docker-compose up -d ${DIALECT}
- run: docker run --link ${DIALECT}:db -e CHECK_PORT=${SEQ_PORT::-1} -e CHECK_HOST=db --net cli_default giorgos/takis
- run: npm run test
test-mysql:
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14]
name: MySQL (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
env:
DIALECT: mysql
SEQ_PORT: 33060
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install sequelize@latest
- run: npm run build
- run: docker-compose up -d ${DIALECT}
- run: docker run --link ${DIALECT}:db -e CHECK_PORT=${SEQ_PORT::-1} -e CHECK_HOST=db --net cli_default giorgos/takis
- run: npm run test
test-sqlite:
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14]
sequelize-version: [5, latest]
name: SQLite (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
env:
DIALECT: sqlite
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install sequelize@${{ matrix.sequelize-version }}
- run: npm run build
- run: npm run test
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sequelize/cli [![npm version](https://badge.fury.io/js/sequelize-cli.svg)](https://npmjs.com/package/sequelize-cli) [![Build Status](https://travis-ci.org/sequelize/cli.svg?branch=master)](https://travis-ci.org/sequelize/cli)
# sequelize/cli [![npm version](https://badge.fury.io/js/sequelize-cli.svg)](https://npmjs.com/package/sequelize-cli) [![CI](https://github.com/sequelize/cli/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sequelize/cli/actions/workflows/ci.yml)

The [Sequelize](https://sequelize.org) Command Line Interface (CLI)

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ services:
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: sequelize_test
MYSQL_USER: root
ports:
- "33060:3306"
container_name: mysql

0 comments on commit df09b6c

Please sign in to comment.