THEMES-763: Identity Blocks | Forgot Password Block #2709
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: Test Blocks And Linting - Changed from themes release base | |
on: | |
pull_request: | |
# synchronize commit(s) pushed to the pull request | |
types: [synchronize, opened] | |
branches: | |
# arc-themes-release-version-{numbers}.{numbers} per product | |
- arc-themes-release-version-[0-9]+\.[0-9]+ | |
# arc-themes-release-version-{numbers}.{numbers}.{numbers} per product | |
- arc-themes-release-version-[0-9]+\.[0-9]+\.[0-9]+ | |
jobs: | |
ensure_minimum_test_coverage_linting: | |
runs-on: ubuntu-latest | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
# 0 indicates all history for all branches and tags | |
fetch-depth: 0 | |
- name: Setup Node with 12 | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
registry-url: "https://npm.pkg.github.com" | |
- name: Cache Node Modules | |
id: cache | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Clean install (CI) dependencies if lockfile (above) changed | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests on changed since base themes release | |
run: npm run test:changed-feature-branch | |
- name: Check linting of changed since base themes release | |
run: npm run lint:changed-feature-branch | |
- name: Check failure status | |
uses: act10ns/slack@v1 | |
with: | |
status: ${{ job.status }} | |
if: failure() |