Skip to content

Case RE-851: Only run OpenStack GitHub Action when TestSuite Completes #1893

Case RE-851: Only run OpenStack GitHub Action when TestSuite Completes

Case RE-851: Only run OpenStack GitHub Action when TestSuite Completes #1893

Workflow file for this run

name: testsuite
on:
push:
branches:
- "*"
- '!docs'
tags-ignore:
- "*"
pull_request:
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
testsuite:
env:
PERL_USE_UNSAFE_INC: 1
CPANEL_BIN_PATH: /usr/local/cpanel/3rdparty/bin
CPANEL_PERL: /usr/local/cpanel/3rdparty/perl/536/bin/perl
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: cpanelos/perl-compiler:perl-v5.36.0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PATH
run: |
echo $CPANEL_BIN_PATH >> $GITHUB_PATH;
$CPANEL_PERL -MConfig -E 'say $Config{sitebin}' >> $GITHUB_PATH
$CPANEL_PERL -MConfig -E 'say $Config{vendorbin}' >> $GITHUB_PATH
- run: perl -V
- name: install Perl dependencies
uses: perl-actions/install-with-cpm@v1.7
with:
sudo: false
cpanfile: "t/cpanfile"
args: "--with-all"
- name: cpanel-setup
run: /bin/bash t/cpanel-setup
- name: which prove
run: ls -l $(which prove)
- run: perl -cw elevate-cpanel
- name: Run tests
run: prove -lv -It/lib t/*.t