Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
web-tests.yml47 linesDownload Raw Back to workflows
1name: Web Tests2 3on:4  pull_request:5    branches:6      - main7    paths:8      - web/**9 10concurrency:11  group: web-tests-${{ github.head_ref || github.run_id }}12  cancel-in-progress: true13 14jobs:15  test:16    name: Web Tests17    runs-on: ubuntu-latest18    defaults:19      run:20        working-directory: ./web21 22    steps:23      - name: Checkout code24        uses: actions/checkout@v425 26      - name: Check changed files27        id: changed-files28        uses: tj-actions/changed-files@v4529        with:30          files: web/**31 32      - name: Setup Node.js33        uses: actions/setup-node@v434        if: steps.changed-files.outputs.any_changed == 'true'35        with:36          node-version: 2037          cache: yarn38          cache-dependency-path: ./web/package.json39 40      - name: Install dependencies41        if: steps.changed-files.outputs.any_changed == 'true'42        run: yarn install --frozen-lockfile43 44      - name: Run tests45        if: steps.changed-files.outputs.any_changed == 'true'46        run: yarn test47