Skip to content

update env vars (#50963) #4

update env vars (#50963)

update env vars (#50963) #4

Workflow file for this run

name: Release Code Tests
on:
push:
branches:
- "master"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
files-changed:
name: Check which files changed
runs-on: ubuntu-22.04
timeout-minutes: 3
outputs:
release_source: ${{ steps.changes.outputs.release_source }}
steps:
- uses: actions/checkout@v4
- name: Test which files changed
uses: dorny/paths-filter@v3.0.0
id: changes
with:
token: ${{ github.token }}
filters: .github/file-paths.yaml
release-type-check:
needs: files-changed
if: needs.files-changed.outputs.release_source == 'true'
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: "release"
- name: prepare dependencies in release directory
run: yarn --cwd release --frozen-lockfile
- name: Run frontend type-check
run: yarn --cwd release type-check
release-tests-unit:
needs: files-changed
if: needs.files-changed.outputs.release_source == 'true'
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: "release"
- name: prepare dependencies in release directory
run: yarn --cwd release --frozen-lockfile
- name: Run release unit tests
run: yarn --cwd release test:unit
release-test-build:
needs: files-changed
if: needs.files-changed.outputs.release_source == 'true'
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: "release"
- name: prepare dependencies in release directory
run: yarn --cwd release --frozen-lockfile
- name: Build release bundle
run: yarn --cwd release build
- name: Smoke test release bundle
run: node release/dist/index.cjs