-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Justinwerner/sc 87/setup GitHub actions (#57)
* Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Work in progress. Needs further testing. * Initial CI/CD done.
- Loading branch information
1 parent
62d4a1f
commit 590e49d
Showing
6 changed files
with
162 additions
and
0 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,7 @@ | ||
APP_KEY=base64:DW6qtQ3/eLXLK9xk7rMlm/2cglk9sJqXz79V/zz8VQk= | ||
DB_CONNECTION=mysql | ||
DB_HOST=mysql | ||
DB_PORT=3306 | ||
DB_DATABASE=test | ||
DB_USERNAME=root | ||
DB_PASSWORD=password |
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,50 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
name: CI Staging | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: kirschbaumdevelopment/laravel-test-runner:8.3 | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: test | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get nova setup for installation | ||
run: | | ||
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}" | ||
- name: Install composer dependencies | ||
run: | | ||
composer install --no-scripts | ||
- name: Install front-end dependencies | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Prepare Venture | ||
run: | | ||
cp .env.ci .env.testing | ||
- name: Run Testsuite | ||
run: vendor/bin/pest | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Deploy to Laravel Forge | ||
run: curl ${{ secrets.FORGE_PRODUCTION_DEPLOYMENT_WEBHOOK }} |
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,50 @@ | ||
on: | ||
push: | ||
branches: | ||
- staging | ||
name: CI Staging | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: kirschbaumdevelopment/laravel-test-runner:8.3 | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: test | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get nova setup for installation | ||
run: | | ||
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}" | ||
- name: Install composer dependencies | ||
run: | | ||
composer install --no-scripts | ||
- name: Install front-end dependencies | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Prepare Venture | ||
run: | | ||
cp .env.ci .env.testing | ||
- name: Run Testsuite | ||
run: vendor/bin/pest | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Deploy to Laravel Forge | ||
run: curl ${{ secrets.FORGE_STAGING_DEPLOYMENT_WEBHOOK }} |
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,26 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v.*' | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body_path: CHANGELOG.md | ||
draft: false | ||
prerelease: false |
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,22 @@ | ||
# Changelog | ||
|
||
## [Unreleased] | ||
|
||
## [1.1.0-beta] - 2024-01-03 | ||
|
||
### Added | ||
|
||
- Implementation of Opt-In Page, Legal Pages, and Signed Unsubscribe Link (#12) | ||
- Student Account Creation Process Revamped (#13) | ||
|
||
### Fixed | ||
|
||
- N/A | ||
|
||
### Changed | ||
|
||
- N/A | ||
|
||
### Removed | ||
|
||
- N/A |
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