update composable app #89
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: Pull request to main branch action | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: [main] | |
jobs: | |
validation: | |
name: Suggested app validation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- run: npm install --global yarn | |
- run: yarn install | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v36 | |
with: | |
files: | | |
apps/**/app.json | |
- name: Validate app.json | |
run: | | |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
if [[ $file == *"app.json"* ]]; then | |
yarn validate-app $file | |
fi | |
done | |
- name: Validate icon.png | |
run: | | |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
if [[ $file == *"icon.png"* ]]; then | |
yarn validate-icon $file | |
fi | |
done |