Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: add ibmi smoke tests to CI #15880

Closed
wants to merge 2 commits into from
Closed
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
55 changes: 55 additions & 0 deletions .github/workflows/ibmi-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Smoke Test (ibmi)
on:
# schedule:
# - cron: '0 9 */5 * *'
push

jobs:
install-and-build:
strategy:
fail-fast: false
matrix:
node-version: [14]
name: Upload install and build artifact (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install dependencies and build sequelize
run: yarn install --frozen-lockfile
- name: Build sequelize
run: yarn build
- name: Compress artifact
run: tar -cf install-build-node-${{ matrix.node-version }}.tar ./packages/core/lib ./packages/core/node_modules ./packages/core/types ./packages/validator-js/lib ./packages/validator-js/node_modules ./packages/validator-js/types ./node_modules
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: install-build-artifact-node-${{ matrix.node-version }}
path: install-build-node-${{ matrix.node-version }}.tar
retention-days: 1
test-ibmi:
strategy:
fail-fast: false
matrix:
node-version: [14]
name: ibmi (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
needs: [ install-and-build ]
env:
DIALECT: ibmi
SEQ_IBMI_CONN_STR: ${{ secrets.IBMI_CONN_STR }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markdirish do you remember what IBMI_CONN_STR you sent to Sascha on Slack? We don't have enough history going back to that and without it getting this to work is difficult. Feel free to reach out to me on Slack

steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: install-build-artifact-node-${{ matrix.node-version }}
- name: Extract artifact
run: tar -xf install-build-node-${{ matrix.node-version }}.tar
- name: Smoke Tests
run: yarn workspace @sequelize/core test-smoke