Skip to content

Update dependency typescript to v5.6.2 #804

Update dependency typescript to v5.6.2

Update dependency typescript to v5.6.2 #804

#
# sri sri guru gaurangau jayatah
#
name: CI
on:
pull_request:
branches:
- main
jobs:
changes:
name: Detect changes in sub-projects
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.filter.outputs.frontend == 'true' || steps.filter.outputs.workflows == 'true' }}
steps:
# Checkout to use filters from file
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: .github/path-filters.yaml
# Job id should match the folder name because it's used in the expressions
frontend:
name: Build and test frontend
runs-on: ubuntu-latest
needs: changes
defaults:
run:
working-directory: ${{ github.job }}
# It is not possible to use `github.job` inside `if` expression
# Comparing to string, because the job output is a strings, not boolean
if: needs.changes.outputs.frontend == 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ${{ github.job }}/package.json
cache: npm
cache-dependency-path: ${{ github.job }}/package-lock.json
- run: npm ci
- run: npm run lint
- run: npm run check-js-typing
- run: npm run build
env:
ALGOLIA_APPLICATION_ID: ${{ vars.ALGOLIA_APPLICATION_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_INDEX_AUDIOS: ${{ vars.ALGOLIA_INDEX_AUDIOS }}
ALGOLIA_INDEX_MEMORIES: ${{ vars.ALGOLIA_INDEX_MEMORIES}}
STORAGE_BASE_URL: ${{ vars.STORAGE_BASE_URL}}
DONATION_URL: ${{ vars.DONATION_URL}}
FEEDBACK_FORM_AUDIOS: ${{ vars.FEEDBACK_FORM_AUDIOS}}
FEEDBACK_FORM_MEMORIES: ${{ vars.FEEDBACK_FORM_MEMORIES}}
CONTACT_FORM: ${{ vars.CONTACT_FORM }}
DIRECTUS_URL: ${{ vars.DIRECTUS_URL }}
DIRECTUS_STATIC_TOKEN: ${{ secrets.DIRECTUS_STATIC_TOKEN }}
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
- run: npm test --if-present
- run: npx prettier --check .
check:
name: Summary Check
if: always()
needs:
- frontend
runs-on: ubuntu-latest
steps:
- run: exit 1
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
deployment:
name: Deploy to a preview channel
needs: frontend
if: contains( github.event.pull_request.labels.*.name, 'preview')
uses: ./.github/workflows/deployment.yaml
with:
environment: preview
preview: true
secrets: inherit