This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
chore: sunset the repo #374
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: 'Pull Request' | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
verify: | |
if: ${{ !startsWith(github.head_ref, 'dependabot/') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: 'Install NPM Packages' | |
run: npm ci | |
- name: 'Run Commitlint' | |
if: ${{ !contains(github.head_ref, 'batched-dependabot-updates') }} | |
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
- name: 'Run Lint' | |
run: npm run lint | |
- name: 'Run Unit Tests' | |
run: npm run test | |
- name: 'Create Build Artifact' | |
run: npm run build | |
- name: 'Upload Build Artifact' | |
uses: actions/[email protected] | |
with: | |
name: build | |
path: dist | |
if-no-files-found: error |