Merge pull request #10 from cclauss/patch-1 #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-environment-variables | |
# This tests whether environment variables are loaded correctly within the | |
# Docker container. The example sets the COMPOSER_PROCESS_TIMEOUT variable | |
# (which has a default of 300), and changes the command to "config" with args | |
# "process-timeout", which will show the value of the associated config setting.defaults: | |
# If the environment variables are loaded, the script should output 1. If they | |
# are ignored, it should output 300. | |
on: [push] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Show environment variables | |
uses: php-actions/composer@master | |
with: | |
php_version: 8.1 | |
ssh_key: ${{ secrets.SSH_KEY }} | |
ssh_key_pub: ${{ secrets.SSH_KEY_PUB }} | |
command: run-script | |
args: env-test | |
env: | |
EXAMPLE_ENVIRONMENT_VARIABLE: "This tests issue php-actions/composer#40" | |
ANOTHER_EXAMPLE: "Here is another value" |