Skip to content

Clojure Implementation #343

Clojure Implementation

Clojure Implementation #343

Workflow file for this run

##
# This workflow assumes that there are valid Makefiles
# in the root of the each language affected,
# which have docker-build and docker-ready targets
##
name: Test if the language in PR passes corresponding checks
on:
pull_request:
# for new PRs, or those who are ready and/or request a review
types: [edited, opened, reopened, synchronize, ready_for_review, review_requested]
branches: [master] # only run the workflow on merging into the master branch
defaults:
run:
shell: bash
jobs:
pr-worthy:
runs-on: ubuntu-latest
steps:
- name: Checking out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # to retrieve all commits
- name: Get changed files
id: changed-files-dir-names
uses: tj-actions/changed-files@v36.1.0
with:
#since_last_remote_commit: true
dir_names: true
dir_names_exclude_current_dir: true
dir_names_max_depth: 1
- name: Build docker images for every language affected
#if: steps.changed-files-dir-names.outputs.any_changed == 'true'
run: |
for i in ${{ steps.changed-files-dir-names.outputs.all_changed_and_modified_files }}; do if [[ $i != .* ]]; then pushd "$i"; make docker-build; popd; fi; done
- name: Run docker containers for built images
#if: steps.changed-files-dir-names.outputs.any_changed == 'true'
run: |
for i in ${{ steps.changed-files-dir-names.outputs.all_changed_and_modified_files }}; do if [[ $i != .* ]]; then pushd "$i"; make docker-ready; popd; fi; done