website-content-updates #7
@@ -4,7 +4,7 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
determine_version:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
repo_name: ${{ steps.project_metadata.outputs.REPO_NAME }}
|
||||
@@ -17,7 +17,21 @@ jobs:
|
||||
- name: Setup Node Environment
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
- name: Acquire Project Metadata
|
||||
- name: Setup Project Dependencies
|
||||
run: |
|
||||
npm ci
|
||||
npx playwright install --with-deps
|
||||
|
||||
- name: Build Project
|
||||
run: npm run build
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: npm run test
|
||||
|
||||
- name: Run E2E Tests
|
||||
run: npm run e2e-test
|
||||
|
||||
- name: Set Project Metadata
|
||||
id: project_metadata
|
||||
run: |
|
||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||
@@ -25,7 +39,7 @@ jobs:
|
||||
|
||||
build_and_push:
|
||||
runs-on: ubuntu-latest
|
||||
needs: determine_version
|
||||
needs: test
|
||||
steps:
|
||||
- name: Checkout caperren-com Repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -55,12 +69,6 @@ jobs:
|
||||
REPO_VERSION_HASH=${{ needs.determine_version.outputs.repo_version_hash }}
|
||||
BUILD_ENVIRONMENT=production
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_and_push
|
||||
steps:
|
||||
- run: echo "Placeholder"
|
||||
|
||||
deploy_production:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
|
||||
Reference in New Issue
Block a user