Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: optimise GitHub Actions (e.g. caching and debugging) #68

Open
natterstefan opened this issue Dec 7, 2021 · 0 comments
Open

core: optimise GitHub Actions (e.g. caching and debugging) #68

natterstefan opened this issue Dec 7, 2021 · 0 comments
Assignees
Labels
chore Housekeeping tasks and features.

Comments

@natterstefan
Copy link
Owner

natterstefan commented Dec 7, 2021

Feature Request

Optimize and as a result, reduce GitHub Actions.

Examples and GitHub Actions

Triggers

on:
  # Triggers the workflow manually via the GitHub UI
  workflow_dispatch:
    inputs:
      debug_enabled:
        description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'     
        required: false
        default: false
  # Trigger the workflow when a pull_request's activity type is opened,
  # synchronize, or reopened.
  pull_request:
  # Trigger the workflow on push
  push:
    branches:
      - dev


      # use tmate in one of the jobs
      # Enable tmate debugging of manually-triggered workflows if the input
      # option was provided
      - name: Setup tmate session
        uses: mxschmitt/action-tmate@v3
        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} 

Cypress Debugging

      # Test
      - name: Run Cypress Integration Tests
        run: npm run test:cypress:run
        working-directory: client

      # If the test fails, provide videos for debugging
      # TODO: conditionally enable `video: true` in cypress config
      - uses: actions/upload-artifact@v2
        if: failure()
        with:
          name: cypress-videos
          path: cypress/videos/

Motivation

The changes should reduce the number of minutes the workflows consume.

@natterstefan natterstefan added the chore Housekeeping tasks and features. label Dec 7, 2021
@natterstefan natterstefan self-assigned this Dec 7, 2021
@natterstefan natterstefan changed the title core: optimise GitHub Actions (e.g. caching) core: optimise GitHub Actions (e.g. caching and debugging) Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Housekeeping tasks and features.
Projects
None yet
Development

No branches or pull requests

1 participant