add checkout_retrieve #125
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: Non-main branch build | |
on: | |
push: | |
branches-ignore: | |
- main | |
# paths: | |
# - 'apps/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.15.0 | |
cache: "npm" | |
- name: Setup Uesio CLI Symlink | |
shell: bash | |
run: | | |
# Symlink the Uesio CLI for subsequent use | |
wget -q https://github.com/ues-io/uesio/releases/download/v0.5.5/uesio-linux | |
chmod +x uesio-linux | |
sudo ln -s $PWD/uesio-linux /usr/local/bin/uesio | |
- name: npm install | |
shell: bash | |
run: npm ci | |
- name: Find apps that were modified | |
id: changed-files | |
uses: tj-actions/changed-files@v40 | |
with: | |
dir_names: true | |
dir_names_max_depth: 2 | |
files: | | |
apps/**/* | |
- name: Build and lint each modified app | |
run: | | |
for dir in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
echo "$dir was changed" | |
cd $dir | |
npm ci | |
npm run lint | |
npm run test | |
cd - >> /dev/null | |
done | |
# - name: Build and lint all apps | |
# run: | | |
# npm run prettier-check | |
# npm run lint-all | |
# npm run build-all |