Skip to content

Update crdt project list API to show all user projects to allow them to upload #1635

Update crdt project list API to show all user projects to allow them to upload

Update crdt project list API to show all user projects to allow them to upload #1635

Workflow file for this run

name: Develop UI CI/CD
on:
push:
paths:
- 'frontend/**'
- '.github/workflows/lexbox-ui.yaml'
- '.github/workflows/deploy.yaml'
branches:
- develop
pull_request:
paths:
- 'frontend/**'
- '.github/workflows/lexbox-ui.yaml'
- '.github/workflows/deploy.yaml'
branches:
- develop
jobs:
set-version:
name: Set Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.setVersion.outputs.VERSION }}
steps:
- name: Set Version
id: setVersion
# set version to date in vYYYY-MM-DD-commitSha format
run: |
shortSha=$(echo ${{ github.sha }} | cut -c1-8)
echo "VERSION=v$(date --rfc-3339=date)-$shortSha" >> ${GITHUB_OUTPUT}
build-ui:
name: Build UI
needs: set-version
uses: ./.github/workflows/lexbox-ui.yaml
with:
version: ${{ needs.set-version.outputs.version }}
deploy-api:
name: Deploy API
if: ${{github.ref == 'refs/heads/develop'}}
needs: [ build-ui, set-version ]
uses: ./.github/workflows/deploy.yaml
secrets: inherit
with:
version: ${{ needs.set-version.outputs.version }}
image: 'ghcr.io/sillsdev/lexbox-ui'
k8s-environment: develop
deploy-domain: lexbox.dev.languagetechnology.org
check-and-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
package_json_file: 'frontend/package.json'
- uses: actions/setup-node@v4
with:
node-version-file: './frontend/package.json'
cache: 'pnpm'
cache-dependency-path: './frontend/pnpm-lock.yaml'
- run: pnpm install
- run: pnpm run -r build # We need code/types generated by the build (e.g. gql/generated)
- run: pnpm run -r check --output machine
- run: pnpm run -r lint:report
- name: Annotate Code Linting REsults
uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # v3.0.0
if: always()
with:
report-json: ./frontend/eslint_report.json