diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-test.yml similarity index 100% rename from .github/workflows/django-tests.yml rename to .github/workflows/django-test.yml diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-build.yml similarity index 72% rename from .github/workflows/frontend-tests.yml rename to .github/workflows/frontend-build.yml index 47d8ee2a..fc58a11d 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-build.yml @@ -1,4 +1,4 @@ -name: Frontend Tests +name: Frontend Test & Build on: workflow_dispatch: @@ -20,8 +20,6 @@ permissions: jobs: build: runs-on: ubuntu-latest - env: - DEVELOPMENT: 1 steps: - name: 'Checkout' @@ -35,8 +33,17 @@ jobs: - name: 'Install NPM Dependencies' run: | cd frontend - npm install - - name: 'Tests' + npm ci + - name: 'Test' run: | cd frontend npm test + - name: 'Build' + run: | + cd frontend + npm run build + - name: 'Archive Built Results' + uses: actions/upload-artifact@v3 + with: + name: main-js + path: frontend/static/frontend/main.js \ No newline at end of file