forked from minio/minio-js
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.73 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI - Test
on:
push:
branches-ignore:
- dependabot/**
pull_request:
branches:
- master
jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
matrix:
node_version: [ 20.x, 18.x, 16.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@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'npm'
- run: npm i
- name: Run Unit and Functional Tests
timeout-minutes: 10
env:
CI: true
MINIO_CI_CD: true
MINT_MODE: full
ACCESS_KEY: minio
SECRET_KEY: minio123
ENABLE_HTTPS: 0
run: npm run test