fix(clickup): Add shell test command (#35) #19
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: Main Branch Build | |
on: | |
push: | |
branches: | |
- main | |
secrets: | |
UESIO_CLI_USERNAME: | |
required: true | |
UESIO_CLI_PASSWORD: | |
required: true | |
jobs: | |
build: | |
environment: prod | |
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://docs.ues.io/site/files/uesio/docs/v1.1.3/clilinux | |
chmod +x clilinux | |
sudo ln -s $PWD/clilinux /usr/local/bin/uesio | |
- name: npm install | |
shell: bash | |
run: npm ci | |
# - name: Build and lint all apps | |
# run: | | |
# npm run prettier-check | |
# npm run lint-all | |
# npm run build-all | |
- 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 modified apps | |
shell: bash | |
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: Package each modified app | |
shell: bash | |
env: | |
UESIO_CLI_USERNAME: ${{ secrets.UESIO_CLI_USERNAME }} | |
UESIO_CLI_PASSWORD: ${{ secrets.UESIO_CLI_PASSWORD }} | |
UESIO_CLI_HOST: ${{ vars.UESIO_CLI_HOST }} | |
UESIO_CLI_LOGIN_METHOD: uesio/core.platform | |
# run: bash bundle-all.sh | |
run: | | |
for dir in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
echo "$dir was changed" | |
bash bundle.sh $dir | |
done | |