-
Notifications
You must be signed in to change notification settings - Fork 29
38 lines (37 loc) · 1.12 KB
/
main.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
name: WildFly CEKit OpenShift Modules - Bats
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
LANG: en_US.UTF-8
STANDALONE_CONFIG_URL: https://raw.githubusercontent.com/jboss-container-images/jboss-eap-modules/7.3.x-legacy/jboss-eap-config-openshift/CD17.0/added/standalone-openshift.xml
jobs:
bats:
name: Bats Shell Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup required system packages
run: |
sudo apt-get update
sudo apt-get install bats libxml2-utils ncat
echo 2 | sudo update-alternatives --config nc
- name: setup env
run: |
PWD=$(pwd)
./test-common/default-env.sh
wget ${{ env.STANDALONE_CONFIG_URL }} -O ${PWD}/test-common/configuration/standalone-openshift.xml
- name: Test
run: |
set -x
PWD=$(pwd)
${PWD}/run-all-tests.sh --tap