Skip to content

another go

another go #2

name: "Acceptance stage"

Check failure on line 1 in .github/workflows/stage-4-acceptance.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/stage-4-acceptance.yaml

Invalid workflow file

(Line: 60, Col: 7): A sequence was not expected
on:
workflow_call:
inputs:
build_datetime:
description: "Build datetime, set by the CI/CD pipeline workflow"
required: true
type: string
build_timestamp:
description: "Build timestamp, set by the CI/CD pipeline workflow"
required: true
type: string
build_epoch:
description: "Build epoch, set by the CI/CD pipeline workflow"
required: true
type: string
nodejs_version:
description: "Node.js version, set by the CI/CD pipeline workflow"
required: true
type: string
python_version:
description: "Python version, set by the CI/CD pipeline workflow"
required: true
type: string
terraform_version:
description: "Terraform version, set by the CI/CD pipeline workflow"
required: true
type: string
version:
description: "Version of the software, set by the CI/CD pipeline workflow"
required: true
type: string
pr_number:
required: true
type: string
permissions:
id-token: write
contents: read
jobs:
# environment-set-up:
# name: "Environment set up"
# runs-on: ubuntu-latest
# timeout-minutes: 5
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Create infractructure"
# run: |
# echo "Creating infractructure..."
# - name: "Update database"
# run: |
# echo "Updating database..."
# - name: "Deploy application"
# run: |
# echo "Deploying application..."
- name: 'Use Node.js'
uses: actions/setup-node@v6
with:
node-version: '${{ inputs.nodejs_version }}'
registry-url: 'https://npm.pkg.github.com'
scope: '@nhsdigital'
- name: Trigger Acceptance Tests
shell: bash
env:
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make test-contract
env:
GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Save result"
run: |
echo "Nothing to save"
# Environment-based tests should run from notify-internal repo, not in public repo
# test-security:
# name: "Security test"
# runs-on: ubuntu-latest
# needs: environment-set-up
# timeout-minutes: 10
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Run security test"
# run: |
# make test-security
# - name: "Save result"
# run: |
# echo "Nothing to save"
# test-ui:
# name: "UI test"
# runs-on: ubuntu-latest
# needs: environment-set-up
# timeout-minutes: 10
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Run UI test"
# run: |
# make test-ui
# - name: "Save result"
# run: |
# echo "Nothing to save"
# test-ui-performance:
# name: "UI performance test"
# runs-on: ubuntu-latest
# needs: environment-set-up
# timeout-minutes: 10
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Run UI performance test"
# run: |
# make test-ui-performance
# - name: "Save result"
# run: |
# echo "Nothing to save"
# test-integration:
# name: "Integration test"
# runs-on: ubuntu-latest
# needs: environment-set-up
# timeout-minutes: 10
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Run integration test"
# run: |
# make test-integration
# - name: "Save result"
# run: |
# echo "Nothing to save"
# test-accessibility:
# name: "Accessibility test"
# runs-on: ubuntu-latest
# needs: environment-set-up
# timeout-minutes: 10
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Run accessibility test"
# run: |
# make test-accessibility
# - name: "Save result"
# run: |
# echo "Nothing to save"
# test-load:
# name: "Load test"
# runs-on: ubuntu-latest
# needs: environment-set-up
# timeout-minutes: 10
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Run load tests"
# run: |
# make test-load
# - name: "Save result"
# run: |
# echo "Nothing to save"
# environment-tear-down:
# name: "Environment tear down"
# runs-on: ubuntu-latest
# needs:
# [
# test-accessibility,
# test-contract,
# test-integration,
# test-load,
# test-security,
# test-ui-performance,
# test-ui,
# ]
# if: always()
# timeout-minutes: 5
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v5
# - name: "Tear down environment"
# run: |
# echo "Tearing down environment..."