Skip to content

.github/workflows/message-queue-ci.yaml: test reusable #1

.github/workflows/message-queue-ci.yaml: test reusable

.github/workflows/message-queue-ci.yaml: test reusable #1

Workflow file for this run

name: Run message-queue producer test
on:
workflow_call:
inputs:
name:
required: true
type: string
comand:
type: string
default: make -C /home/user/mq check
secrets:
GITHUB_TOKEN:

Check failure on line 13 in .github/workflows/mq-run-test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/mq-run-test.yaml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
run-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/code-golf_message-queue_producer-${{ inputs.name }}:${{ github.sha }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
services:
postgres-test:
image: ghcr.io/${{ github.repository_owner }}/code-golf_message-queue_postgres:${{ github.sha }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
env:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- "./container/postgres/postgresql.conf:/etc/postgres/postgresql.conf"
- "./container/postgres/init:/docker-entrypoint-initdb.d/"
steps:
- name: make check
env:
PG_TEST_ENV: postgres-test:5432
run: ${{ inputs.command }}