-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added secret as environment variable
- Loading branch information
1 parent
dd5e289
commit d17389f
Showing
3 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Run Tests on Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
php-version: '8.1' | ||
|
||
- name: Build | ||
run: | | ||
composer install --no-dev --optimize-autoloader | ||
composer box-install | ||
# Warm the symfony cache so it gets bundled with phar. | ||
./bin/acli | ||
composer box-compile | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Run tests | ||
env: | ||
APPLICATION_UUID: ${{ secrets.APPLICATION_UUID }} | ||
APPLICATION_NAME: ${{ secrets.APPLICATION_NAME }} | ||
ACLI_AUTH_TOKEN: ${{ secrets.ACLI_AUTH_TOKEN }} | ||
ACLI_AUTH_SECRET: ${{ secrets.ACLI_AUTH_SECRET }} | ||
# Add more secret environment variables as needed | ||
run: python3 -m unittest discover -s tests/integration/testcases |
Empty file.
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