Skip to content

Add a github action to build and test project#120

Open
adrianparsons wants to merge 1 commit intoAnatolyUss:masterfrom
adrianparsons:adrianparsons-githubaction
Open

Add a github action to build and test project#120
adrianparsons wants to merge 1 commit intoAnatolyUss:masterfrom
adrianparsons:adrianparsons-githubaction

Conversation

@adrianparsons
Copy link
Copy Markdown
Contributor

@adrianparsons adrianparsons commented Nov 13, 2023

This adds a github action to run when PRs are opened against master.

Basically, the action:

  1. Spins up an Ubuntu environment
  2. Creates a postgres "service"
  3. Starts the mysql server (installed by default on Ubuntu)
  4. Configures mysql and postgres for tests
  5. Installs nmig dependencies, builds the project, and runs tests

See my fork for examples of test runs.

This PR adds a github action file, but actions have to be enabled in the project to actually run.

I'd like to eventually expand this to include tests for the Docker workflow.

Test node versions 18.x and 20.x

- start mysql service (ubuntu comes with it)

- add postgres service

- configure mysql and postgres for tests

- install nmig, dependencies, build and run tests
@adrianparsons adrianparsons force-pushed the adrianparsons-githubaction branch from a864c2d to f77f62c Compare April 4, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant