mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
- allows skipping symlink creation - symlink binary destinations can be configured - renamed git_version -> cgrates_branch. This also makes sure cgrates_branch variable is being set directly from the role and there's no need to configure it in the playbook. - fixed some linter warnings and slightly improved formatting
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
name: integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- README.md
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- README.md
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
# check-if-duplicate-action:
|
|
# # continue-on-error: true # Uncomment once integration is finished
|
|
# runs-on: ubuntu-latest
|
|
# outputs:
|
|
# should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
# steps:
|
|
# - id: skip_check
|
|
# uses: fkirc/skip-duplicate-actions@v5
|
|
# with:
|
|
# concurrent_skipping: 'never'
|
|
# skip_after_successful_duplicate: 'true'
|
|
# paths_ignore: '["master/docs/**"]'
|
|
# paths: '["master/**.go", "master/*.sh", "master/.github", "master/data/ansible/conf/samples/**", "master/data/tariffplans"]'
|
|
|
|
integration-tests:
|
|
# needs: check-if-duplicate-action
|
|
# if: needs.check-if-duplicate-action.outputs.should_skip != 'true'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23.x"
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Install Ansible
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ansible
|
|
|
|
- name: Run Ansible Playbook
|
|
run: |
|
|
ansible-playbook data/ansible/integration_tests/main.yaml -i localhost, -c local -e "ansible_user=$(whoami) cgrates_dir=$GITHUB_WORKSPACE cgrates_clone_repo=false install_go=false"
|
|
|
|
# - name: Set up tmate session for debugging
|
|
# uses: mxschmitt/action-tmate@v3
|
|
|
|
- name: Run flaky tests
|
|
continue-on-error: true
|
|
run: |
|
|
sudo env "PATH=$PATH" ./flaky_test.sh
|
|
|
|
- name: Run integration tests
|
|
run: |
|
|
sudo env "PATH=$PATH" ./integration_test.sh
|