Skip to content

Commit

Permalink
ci: Update Nova Authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumTowers committed Sep 2, 2023
1 parent f50c591 commit 9fd8591
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ jobs:

# Authenticate Nova
- name: Authenticate Nova Installation
env:
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }}
NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }}
run: |
cp auth.json.example auth.json
composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD}
sed -i "s/your-username/${NOVA_USERNAME}/g" auth.json
sed -i "s/your-password/${NOVA_PASSWORD}/g" auth.json
# Start MySQL and Create Databases
- name: Create Databases
Expand Down Expand Up @@ -188,9 +192,13 @@ jobs:
php-version: 8.1

- name: Authenticate Nova Installation
env:
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }}
NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }}
run: |
cp auth.json.example auth.json
composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD}
sed -i "s/your-username/${NOVA_USERNAME}/g" auth.json
sed -i "s/your-password/${NOVA_PASSWORD}/g" auth.json
- name: Install PHP dependencies
uses: ramsey/composer-install@v2
Expand Down

0 comments on commit 9fd8591

Please sign in to comment.