Skip to content

Merge pull request #265 from govuk-one-login/IPS-741-Lime-CloudFront-… #668

Merge pull request #265 from govuk-one-login/IPS-741-Lime-CloudFront-…

Merge pull request #265 from govuk-one-login/IPS-741-Lime-CloudFront-… #668

Workflow file for this run

name: Pre-merge checks
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Pre-commit github action
uses: pre-commit/action@v3.0.1
with:
extra_args: "detect-secrets --all-files"
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Run lint
run: yarn lint
- name: Run test and write coverage
run: yarn test:coverage
- name: Run browser tests
run: yarn run test:browser:ci
- name: Run sonarcloud scan
if: ${{ github.actor != 'dependabot[bot]' }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}