Refactor code to check if service is enabled directly from service in… #117
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: Exported files | |
on: [push] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v4" | |
- name: "Check exported files" | |
run: | | |
EXPECTED="LICENSE,README.md,RELEASES.md,SECURITY.md,composer.json" | |
CURRENT="$(git archive HEAD | tar --list --exclude="assets" --exclude="assets/*" --exclude="src" --exclude="src/*" --exclude="templates" --exclude="templates/*" | paste -s -d ",")" | |
echo "CURRENT =${CURRENT}" | |
echo "EXPECTED=${EXPECTED}" | |
test "${CURRENT}" == "${EXPECTED}" |