Skip to content

Allow filtering projects by username as well as email (#680) #604

Allow filtering projects by username as well as email (#680)

Allow filtering projects by username as well as email (#680) #604

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@v3
- uses: actions/setup-node@v4
with:
node-version-file: './frontend/package.json'
- run: corepack enable
- run: pnpm install
- run: pnpm run build # We need code/types generated by the build (e.g. gql/generated)
- run: pnpm run check --output machine
- run: pnpm run lint:report
- name: Annotate Code Linting REsults
uses: ataylorme/eslint-annotate-action@2.2.0
if: always()
with:
report-json: ./frontend/eslint_report.json