Skip to content

Feat/prsd 495 register property check answer page #505

Feat/prsd 495 register property check answer page

Feat/prsd 495 register property check answer page #505

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Run gradle `check` to run linting and tests
env:
ONE_LOGIN_PRIVATE_KEY: |
${{ secrets.ONE_LOGIN_PRIVATE_KEY }}
ONE_LOGIN_PUBLIC_KEY: |
${{ secrets.ONE_LOGIN_PUBLIC_KEY }}
EMAILNOTIFICATIONS_APIKEY: ${{ secrets.NOTIFY_KEY }}
run: ./gradlew clean check --no-daemon
- name: Report pipeline status
if: always() && github.event_name == 'push' && github.ref == 'refs/heads/main'
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"commit": ${{ toJson(github.event.head_commit.message) }},
"result": "${{ job.status == 'success' && 'Success :tick:' || 'Failure :no-cross:' }}",
"url": "${{ format('https://github.com/communitiesuk/prsdb-webapp/actions/runs/{0}', github.run_id) }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}