Add 3.7.2 entry in the changelog #430
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ParallelCluster Cookbook Validation on Docker | |
on: | |
push: | |
pull_request: | |
types: [ opened, synchronize, reopened, labeled, unlabeled ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-labels: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Should skip system tests? | |
id: skip_system_tests | |
run: | | |
skip=$(gh api -H "Accept: application/vnd.github+json" /repos/aws/aws-parallelcluster-cookbook/issues/${{ github.event.pull_request.number }}/labels | jq -r '.[].name' | grep -q ^skip-system-tests$ && echo 'true' || echo 'false') | |
echo "Skipping System tests: $skip" | |
echo "skip=$skip" >> $GITHUB_OUTPUT | |
env: | |
GH_TOKEN: ${{ github.token }} | |
outputs: | |
skip_system_tests: ${{ steps.skip_system_tests.outputs.skip }} | |
systemtest: | |
needs: [check-labels] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: | |
- alinux2 | |
- centos7 | |
- ubuntu2004 | |
- rhel8 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@main | |
- name: Get changed files | |
id: changed-files-excluding-tests | |
uses: tj-actions/[email protected] | |
with: | |
files_ignore: | | |
!.* | |
!chefignore | |
!README.md | |
!CHANGELOG.md | |
!**/aws-parallelcluster-*/spec | |
!**/aws-parallelcluster-*/test | |
- name: Install Chef | |
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true' && needs.check-labels.outputs.skip_system_tests != 'true' | |
uses: actionshub/chef-install@main | |
- name: Kitchen Test Install | |
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true' && needs.check-labels.outputs.skip_system_tests != 'true' | |
uses: actionshub/test-kitchen@main | |
with: | |
os: ${{ matrix.os }} | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_YAML: kitchen.docker.yml | |
KITCHEN_LOCAL_YAML: cookbooks/aws-parallelcluster-entrypoints/kitchen.entrypoints-install.yml | |
KITCHEN_GLOBAL_YAML: kitchen.global.yml | |
KITCHEN_PHASE: install | |
KITCHEN_SAVE_IMAGE: true | |
continue-on-error: false | |
- name: Set Image Id | |
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true' && needs.check-labels.outputs.skip_system_tests != 'true' | |
run: | | |
PLATFORM=$(echo "${{ matrix.os }}" | tr a-z A-Z) | |
echo "PLATFORM=${PLATFORM}" | |
echo "KITCHEN_${PLATFORM}_IMAGE=pcluster-install/entrypoints-install-${{ matrix.os }}" | |
echo "KITCHEN_${PLATFORM}_IMAGE=pcluster-install/entrypoints-install-${{ matrix.os }}" >> $GITHUB_ENV | |
- name: Kitchen Test Config | |
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true' && needs.check-labels.outputs.skip_system_tests != 'true' | |
uses: actionshub/test-kitchen@main | |
with: | |
os: ${{ matrix.os }} | |
suite: slurm-config-head-node-x86-64-docker | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_YAML: kitchen.docker.yml | |
KITCHEN_LOCAL_YAML: kitchen.validate-config.yml | |
KITCHEN_GLOBAL_YAML: kitchen.global.yml | |
KITCHEN_PHASE: config | |
KITCHEN_SAVE_IMAGE: false | |
KITCHEN_AWS_REGION: eu-west-1 | |
KITCHEN_INSTANCE_TYPE: docker | |
continue-on-error: false |