Skip to content

Commit

Permalink
Merge pull request #32 from slacgismo/develop
Browse files Browse the repository at this point in the history
PV-Validation-Hub v0.9.0
  • Loading branch information
Thistleman authored Mar 7, 2024
2 parents a2395e3 + 8ad0ea5 commit 69c4107
Show file tree
Hide file tree
Showing 215 changed files with 32,502 additions and 19,996 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,66 @@ name: Build and Test

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:

env:
applicationfolder: valhub
AWS_REGION: us-west-2
S3BUCKET: pv-validation-hub-bucket
DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }}


jobs:
build-fe:
name: Build and Test
name: Build and Test Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Repository

- name: install
- name: install dependencies and build
run: |
cd frontend
export DOCKER_BUILDKIT=1
docker build -t pv/val:tag -f Dockerfile .
cp .env.example .env
npm install
npm run build
# Needs to include aws login step as well
# - name: build
# run: |
# cd frontend
# npm run build
# aws s3 sync ./build/ s3://pv-validation-hub-website --acl public-read
#
- name: run tests
run: |
cd frontend
npm run test
build-api:
name: Build and Test
name: Build and Test API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Repository

- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./valhub"
version: "24.2.0"

- name: build
run: |
cd valhub
export DOCKER_BUILDKIT=1
docker build --build-arg admin_username="placeholder" --build-arg admin_password="replaceme" --build-arg djangosk="placeholder" -t pv/val:tag -f Dockerfile .
docker build --build-arg admin_username="placeholder" --build-arg admin_password="placeholder" --build-arg djangosk="${{ env.DJANGO_SECRET_KEY }}" -t pv/val:tag -f Dockerfile .
build-worker:
name: Build and Test
name: Build and Test Worker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Repository

- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./workers"
version: "24.2.0"

- name: build
run: |
cd workers
Expand Down
70 changes: 0 additions & 70 deletions .github/workflows/deploy.md

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/deployStaging.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/deploy_dev_to_AWS.md

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/deploy_production_to_AWS.md

This file was deleted.

Loading

0 comments on commit 69c4107

Please sign in to comment.