-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 814 Bytes
/
ci.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
name: Tests
on:
push:
branches-ignore:
- main
workflow_dispatch:
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
mongo-version: [6, 7]
services:
database:
image: mongo:${{ matrix.mongo-version }}
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
steps:
- uses: actions/checkout@v4
- uses: ./
with:
mongo-command: mongorestore
connection-string: mongodb://root:root@database:27017
compress: true
additional-args: '--tlsInsecure'
- uses: actions/upload-artifact@v4
with:
name: dump-mongo${{ matrix.mongo-version }}
path: ${{ github.workspace }}/dump