Skip to content
Snippets Groups Projects
cljs.yml 1.08 KiB
Newer Older
      - 'master'
      - 'release-**'
concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
  cancel-in-progress: true

  files-changed:
    name: Check which files changed
    runs-on: ubuntu-22.04
    timeout-minutes: 3
    outputs:
      cljs: ${{ steps.changes.outputs.cljs }}
    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
    needs: files-changed
    if: needs.files-changed.outputs.cljs == 'true'
    timeout-minutes: 15
    - uses: actions/checkout@v4
    - name: Prepare front-end environment
      uses: ./.github/actions/prepare-frontend
    - name: Prepare back-end environment
      uses: ./.github/actions/prepare-backend
      with:
        m2-cache-key: 'cljs'
    - name: Run Cljs tests for shared/ code
      run: yarn run test-cljs