Questions tagged [github-actions-services]

17 questions
19
votes
1 answer

GitHub Actions: How to run test inside container

I wanted to run django test cases inside container. I am able to pull private image from docker hub. but when I ran command to test, It is failed to run. Anyone tried running test cases inside the container. jobs: test: container: image: abcd …
Manoj Jadhav
  • 1,270
  • 1
  • 15
  • 23
9
votes
1 answer

iOS Github Actions (build, test and deploy)

I'm trying to make a simple workflow using github actons, so when I push for example to my master branch, it builds the code in macOS-latest and test it on OS 12.4, iPhone 11 Pro Max. Since it's very new, the tutorials are not complete, can someone…
Arturo
  • 3,254
  • 2
  • 22
  • 61
8
votes
4 answers

GitHub Actions: How to run `services` on Windows or macOS?

I want to test a CLI that should connect to PostgreSQL and MySQL servers using GitHub Actions, on all platforms if possible: Linux, Windows and macOS. I found instructions on how to run a Postgres service and how to run a MySQL service and combined…
janpio
  • 10,645
  • 16
  • 64
  • 107
4
votes
0 answers

How to set up Github Actions for Rails with PostgreSQL

I have an empty Rails 6 with PostgreSQL project on GitHub and I'm trying to configure GitHub Actions to run the Rails test suite whenever a pull request gets created. I tried to follow this guide but somehow it doesn't work for me. The pipeline…
2
votes
1 answer

GitHub Actions Concurrency

I am creating a workflow in GitHub Actions and I'm having trouble with concurrency & lockable resources. I have a job that runs unit tests on a specific resource. I have a pool of different resources that can be tested but only one of the resources…
2
votes
1 answer

Github Actions outcome is not retrieved

I'm attempting to run the following .yml with GitHub Actions, but the outcome from the steps is not retrieved or null. The documentation for outcome is here. name: run test for outcome on: workflow_dispatch: jobs: run-test-for-outcome: …
2
votes
1 answer

Clone data befor starting service in github actions

I try to build a github action workflow that depends on a database (available as docker container) which in turn depends on data that needs to be cloned from a git repository. The data needs to be available when starting the docker…
white_gecko
  • 4,808
  • 4
  • 55
  • 76
2
votes
1 answer

Can I reference a Dockerfile instead of an image in a GitHub Actions workflow?

Checking out the example-services repository, they set up services by referencing to images hosted, like here: services: redis: image: redis ports: - 6379:6379 options: --entrypoint redis-server We use a…
Jimmy C
  • 9,270
  • 11
  • 44
  • 64
1
vote
0 answers

Does github actions support vnc enable?

Our company want to have test automation run by Github actions. As a part of it, we need to open vnc viewer to a client machine, Are there any possible ways to do it at the moment? If not, are there any library or software that can create virtual…
1
vote
0 answers

Github Actions Workflow: Unable to connect to the custom-built Docker Container's port via image://container-name:port/rest/of/path

My goal: I'll commit a PR for a repo that triggers a GA Workflow. This includes building the Docker image for that repo along with other images. All of their images are built by checking out their repos b/c my team wants to avoid pulling their…
0
votes
2 answers

How do I get the list of runs for last 30 days in github actions?

How do I modify this API call to get the list of runs for the last 30 days? Endpoint: https://api.github.com/repos/[OWNER]/[REPO]/actions/runs I…
0
votes
0 answers

Call a variable inside the nested expression in github actions

I am trying to call the variable like this: with: tags: ${{ inputs.push_tag_to_release && 'op/post:'[env.tag] || 'op/post:${{ env.tag }}' }} where, env.tag = 0.13 (value) but both the ways [env.tag] or ${{ env.tag }} are showing as…
0
votes
0 answers

github action: init services container port with "runner" context

I'm writing github workflow file that is using (docker container) services. I tried to set the port of the service container with running actions-runner's name, like ${{ runner.name }}. My workflows file looks like below. I'm using…
0
votes
0 answers

github actions stage to check if pull request is approve or not

I have Jenkins pipeline code which will check, if pull request is approved or not. If its not approved it will wait till the pull request approve. So I want to add same step in github actions since we are migrating from Jenkins pipeline. I have…
0
votes
1 answer

Github action error with Set up QEMU - Error: Unable to locate executable file: docker

I'm building a workflow to test, build a docker image and push it to GitHub private repository. I used to run the action on ububntu-latest and use a specific PHP version and some environment builds but there were some problems due to the fact that…
1
2