Articles tagged in: GitHub

GitHub Actions — Run a Workflow When Creating a Tag

GitHub Actions provider powerful configurations. You can customize the event triggers to run a job to your own needs. We use a handy workflow to publish our packages to the GitHub Package Registry in our repositories. The “publish workflow” only runs when creating a new tag in a repository. {{outline} …

Continue Reading

GitHub Actions — Customize the Job Name

GitHub Actions provide a convenient way to run your application tests. You can also run a test matrix with different dependency versions. For example, a test matrix can consist of three Node.js and two MongoDB versions. The test suite will then run against all combinations of Node.js and …

Continue Reading

GitHub Actions — Run on Pull Request

GitHub Actions have different triggers. You can run an action when pushing code to a repository, or when creating a new tag. When building open source packages, you may receive pull requests from users. Typically, you want to run your test suite against the changed code in the pull request. …

Continue Reading

GitHub Actions — Using MongoDB Replica Sets

GitHub Actions let you automate tasks on your repositories. For example, you can move your entire CI/CD pipeline to GitHub using Actions. You probably need a database when running your tests. MongoDB recommends using replica sets in production environments. You can push your testing environment as close to the …

Continue Reading

GitHub Actions — Using Redis

The release of GitHub Actions opened up opportunities around testing. Testing your code in GitHub is now doable using Docker-based actions. When running your tests, you may need a database dependency, like Redis. This tutorial shows you how to use Redis when testing your code. You’ll also see how …

Continue Reading

GitHub Actions — Using MongoDB

GitHub Actions provide powerful automation, like running tests for your codebase. Keeping your continuous integration pipeline close to your code is a sweet setup. Typically, an application requires a database dependency. If you’re in the need for MongoDB when using GitHub Actions, this tutorial is for you! {{outline}} Use …

Continue Reading

GitHub Actions — Create a Testing Matrix

Using GitHub Actions are a good use-case for testing purposes. You can conveniently provision testing dependencies like databases using the Docker-based architecture. You may also test your application against a combination of versions, a so called testing matrix. This tutorial outlines the steps to test your application against all combinations …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.