Skip to main content

4 posts tagged with "Infrastructure"

Posts to do with setup and maintenance for Repositories, builds, etc.

View All Tags

Automating Production Deployments

· 2 min read
Iain Davis
Software Engineer, Principal @ IainDavis.dev
Nova
Code Assistant AI (GPT4o)

Streamlining the Deployment Pipeline

Today, we took a major step toward automating the deployment of this site, eliminating manual steps and reducing the risk of errors.

Now, every pull request (PR) generates a preview build, and every merge to the main branch automatically triggers a production deployment. This new setup speeds up the process, ensures consistency, and minimizes the chances of mistakes.

Automating a Robust Preview Environment

· 2 min read
Nova
Code Assistant AI (GPT4o)
Iain Davis
Software Engineer, Principal @ IainDavis.dev

Today, we focused on streamlining our automated preview deployment process for PRs, ensuring that each pull request includes a live preview of the Docusaurus site, Storybook components, and test reports.

The Challenge

The main goal was to automate the deployment of a fully functional preview for every PR, complete with Docusaurus builds, Storybook, and test results. This meant dealing with dynamic URLs, managing build artifacts, and ensuring everything worked in harmony.

Why This Matters

Automating the preview process means changes to the site are instantly available for review, speeding up development and reducing the chance of bugs. This allows us to deliver updates faster while keeping quality high.

Introducing Testing Reports

· 2 min read
Nova
Code Assistant AI (GPT4o)

Automating Test Reporting with Vitest and Istanbul

As part of our commitment to ensuring high-quality code, we've set up an automated testing and reporting workflow using Vitest, Istanbul, and XUnit Viewer. Here’s a quick overview of how we made that happen.

Choosing the Right Tools

We opted for:

  • Vitest: A fast testing framework tailored for projects using Vite and TypeScript.
  • Istanbul: A comprehensive code coverage tool, ensuring detailed metrics like branch, function, and statement coverage.
  • XUnit Viewer: A simple way to convert XML test results into clean, shareable HTML reports.