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

ci: start minio as first step #1149

Merged
merged 1 commit into from
May 12, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/workflows/nodejs-windows.yml

This file was deleted.

45 changes: 31 additions & 14 deletions .github/workflows/nodejs.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI - Linux
name: CI - Test

on:
push:
Expand All @@ -13,11 +13,36 @@ jobs:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 2
max-parallel: 5
matrix:
node_version: [12.x, 14.x, 16.x, 18.x, 20.x]
os: [ubuntu-latest]
node_version: [ 20.x, 18.x, 16.x, 14.x, 12.x, ]
os: [ ubuntu-latest, windows-latest ]

env:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_KMS_SECRET_KEY: 'my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw='
MINIO_CI_CD: true
SERVER_ENDPOINT: localhost:9000

steps:
- name: Start Server
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
wget --quiet -O /tmp/minio https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x /tmp/minio
/tmp/minio -C /tmp/minio-config server /tmp/data{1...4} &


- run: Invoke-WebRequest -Uri https://dl.minio.io/server/minio/release/windows-amd64/minio.exe -OutFile $HOME/minio.exe
if: ${{ matrix.os == 'windows-latest' }}

- name: Start MinIO Server
if: ${{ matrix.os == 'windows-latest' }}
shell: bash
run: |
$HOME/minio.exe -C $HOME/tmp/minio-config server $HOME/tmp/data{1...4} &

- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
Expand All @@ -27,21 +52,13 @@ jobs:

- run: npm i

- name: Start Server -> Run Unit and Functional Tests
- name: Run Unit and Functional Tests
timeout-minutes: 10
env:
CI: true
MINIO_CI_CD: true
MINT_MODE: full
SERVER_ENDPOINT: localhost:9000
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_KMS_SECRET_KEY: 'my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw='
ACCESS_KEY: minio
SECRET_KEY: minio123
ENABLE_HTTPS: 0
run: |
wget --quiet -O /tmp/minio https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x /tmp/minio
/tmp/minio -C /tmp/minio-config server /tmp/data{1...4} &
npm run test
run: npm run test