Open reneefromhold opened 3 weeks ago
A new GitHub Actions workflow file, build-and-test-workflow.yml
, has been created to automate the build and test process for the renee/Workflow
branch. This workflow is triggered by pushes and pull requests, excluding certain files and directories. It includes two jobs: build-and-test
, which installs dependencies, builds the project, and runs tests, and notify-on-failure
, which sends notifications to a Slack channel if the build fails, including relevant commit details.
File Path | Change Summary |
---|---|
.github/workflows/build-and-test-workflow.yml | Introduced a new GitHub Actions workflow with two jobs: build-and-test and notify-on-failure . |
sequenceDiagram
participant User
participant GitHub
participant CI
participant Slack
User->>GitHub: Push or PR to renee/Workflow
GitHub->>CI: Trigger build-and-test workflow
CI->>CI: Checkout repository
CI->>CI: Setup Node.js 20.x
CI->>CI: Install dependencies (npm ci)
CI->>CI: Build project (npm run build-storybook)
CI->>CI: Run tests (npm run test)
alt Build Success
CI->>GitHub: Complete workflow
else Build Failure
CI->>Slack: Notify failure with commit details
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Overview
Set up a gitbhub workflow that
Currently these things happen after merging, during the next leg which is deployment to amplify. If something goes wrong, there is nothing in place to surface problems to the committing dev.
Security
REMINDER: All file contents are public.
Describe briefly what security risks you considered, why they don't apply, or how they've been mitigated.
Checklist
Testing
Documentation
Consider "Squash and merge" as needed to keep the commit history reasonable on
main
.Reviewers
Assign to the appropriate reviewer(s). Minimally, a second set of eyes is needed ensure no non-public information is published. Consider also including:
Summary by CodeRabbit