Skip to content

Commit

Permalink
start minio first
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed May 12, 2023
1 parent 52e214e commit c33345c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 60 deletions.
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

0 comments on commit c33345c

Please sign in to comment.