Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/renovate.json

This file was deleted.

57 changes: 35 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@

name: CI
on: [push, pull_request]
on:
push:
branches:
- main
- v6
Comment thread
WikiRik marked this conversation as resolved.
- v7
pull_request:

jobs:
test-postgres:
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 16]
node-version: [10, 16]
sequelize-version: [5, latest]
name: Postgres (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
Expand All @@ -19,17 +24,16 @@ jobs:
- 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: yarn install --frozen-lockfile --ignore-engines
- run: yarn add sequelize@${{ matrix.sequelize-version }} --ignore-engines
- 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
- run: yarn test
test-mysql:
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 16]
node-version: [10, 16]
Comment thread
WikiRik marked this conversation as resolved.
sequelize-version: [5, latest]
name: MySQL (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
Expand All @@ -41,17 +45,16 @@ jobs:
- 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: yarn install --frozen-lockfile --ignore-engines
- run: yarn add sequelize@${{ matrix.sequelize-version }} --ignore-engines
- 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
- run: yarn test
test-sqlite:
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 16]
node-version: [10, 16]
sequelize-version: [5, latest]
Comment thread
WikiRik marked this conversation as resolved.
name: SQLite (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
Expand All @@ -62,22 +65,32 @@ jobs:
- 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
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn add sequelize@${{ matrix.sequelize-version }} --ignore-engines
- run: yarn test
release:
name: Release
runs-on: ubuntu-latest
needs: [test-sqlite, test-postgres, test-mysql]
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
needs:
[
test-sqlite,
test-postgres,
test-mysql
]
if: github.event_name == 'push' && (github.ref == 'refs/heads/v6' || github.ref == 'refs/heads/v7')
Comment thread
WikiRik marked this conversation as resolved.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
- run: npm install
node-version: 16.x
- run: yarn install --frozen-lockfile
- run: npx semantic-release
- id: sequelize
Comment thread
WikiRik marked this conversation as resolved.
uses: sdepold/github-action-get-latest-release@master
with:
repository: sequelize/cli
- run: |
curl -XPOST -u "sdepold:${{ secrets.GH_TOKEN }}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/sequelize/cli/dispatches --data '{"event_type":"Release notifier","client_payload":{"release-id": ${{ steps.sequelize.outputs.id }}}}'
Comment thread
WikiRik marked this conversation as resolved.
Comment thread
WikiRik marked this conversation as resolved.
37 changes: 37 additions & 0 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Get releases:
# curl -XGET -u "username:access-token" -H "Accept: application/vnd.github.everest-preview+json" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/sequelize/cli/releases

# Trigger manually:
# curl -XPOST -u "username:access-token" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/sequelize/cli/dispatches --data '{"event_type":"Release notifier","client_payload":{"release-id": release-id}}'

name: Notify release channels
on: repository_dispatch
jobs:
tweet:
name: Tweet release
runs-on: ubuntu-latest
steps:
- uses: cardinalby/git-get-release-action@v1.1
id: releaseInfo
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
releaseId: ${{ github.event.client_payload.release-id }}
- uses: ethomson/send-tweet-action@v1
with:
status: "We have just released ${{ steps.releaseInfo.outputs.name }} of Sequelize CLI. https://github.com/sequelize/cli/releases/tag/${{ steps.releaseInfo.outputs.name }}"
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
notify-opencollective:
name: Notify OpenCollective
runs-on: ubuntu-latest
steps:
- uses: sequelize/proxy-release-to-open-collective@main
with:
releaseId: ${{ github.event.client_payload.release-id }}
projectSlug: sequelize/cli
ocSlug: sequelize
ocApiKey: ${{ secrets.OPEN_COLLECTIVE_KEY }}
githubToken: ${{ secrets.GH_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ test/support/tmp/*

# Extra files
package-lock.json
yarn.lock
npm-debug.log
5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}
Loading