forked from pgaudit/pgaudit
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 853 Bytes
/
test.yml
File metadata and controls
38 lines (30 loc) · 853 Bytes
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
name: test
on:
push:
branches:
- integration
- '**_INTEGRATION'
- '**-ci'
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
# Let all the jobs run to completion even if one fails
fail-fast: false
# Test matrix
matrix:
include:
# Debian
- image: debian
# RHEL
- image: rhel
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: pgaudit
- name: Build Test Container
run: docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -f ${GITHUB_WORKSPACE?}/pgaudit/test/Dockerfile.${{matrix.image}} -t pgaudit-test ${GITHUB_WORKSPACE?}/pgaudit
- name: Run Test
run: docker run -v ${GITHUB_WORKSPACE?}/pgaudit:/pgaudit pgaudit-test /pgaudit/test/test.sh