Skip to content

Add _.cloneDeep

Add _.cloneDeep #51

Workflow file for this run

name: PR
on:
pull_request:
types:
- opened
- edited
- synchronize
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
pull-requests: write
jobs:
test:
name: Test
runs-on: ubuntu-latest
environment: testing
steps:
- name: 👌🏻 Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
- name: 🔎 Run tests
run: npm run test
- name: Run unit tests
run: npm run test:unit
set-automerge:
name: Approve and automerge (only dependanbot PRs)
runs-on: ubuntu-latest
environment: testing
needs: [test]
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}