Update dependency Moq to v4.20.69 #689
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run UI tests on isolated environment | |
on: | |
pull_request: | |
branches: [ main, '**-feature' ] | |
types: [ opened, synchronize, reopened] | |
push: | |
branches: [ main ] | |
env: | |
NODE_VERSION: 18.13.0 | |
jobs: | |
playwright: | |
name: Set up container and run tests | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: tests/playwright | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- uses: actions/setup-node@v3 | |
name: Set up Node.js | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: npm | |
cache-dependency-path: | | |
DfE.FindInformationAcademiesTrusts/package-lock.json | |
tests/playwright/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Pin Playwright cache key | |
id: playwright-version | |
run: | | |
PLAYWRIGHT_VERSION="$(node -e "console.log(require('./package-lock.json').packages['node_modules/@playwright/test'].version)")" | |
PIN_VERSION=${PLAYWRIGHT_VERSION}-`date +%Y-%m-%d` | |
echo "PLAYWRIGHT_VERSION=$PIN_VERSION" >> $GITHUB_ENV | |
- name: Cache playwright binaries | |
uses: actions/cache@v3 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Start services | |
working-directory: ./docker | |
run: docker compose -f docker-compose.ci.yml up -d | |
- name: Run Playwright tests | |
env: | |
CI: true | |
PLAYWRIGHT_BASEURL: "http://localhost" | |
WIREMOCK_BASEURL: "http://localhost:8080" | |
run: npm run test:ci | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: tests/playwright/playwright-report/ | |
retention-days: 7 | |
- name: Stop services | |
if: always() | |
working-directory: ./docker | |
run: docker compose -f docker-compose.ci.yml stop |