add a cache delete action #11
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: Build | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build-action: | |
name: Build Action | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4.2.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4.1.0 | |
with: | |
node-version-file: .nvmrc | |
- name: Install Dependencies | |
run: npm ci | |
- name: Check Formatting | |
run: | | |
npm run format | |
git diff && git diff-index --quiet --exit-code HEAD | |
- name: Check Lint | |
run: npm run lint | |
- name: Test Action | |
run: npm test | |
- name: Build Action | |
run: | | |
npm run build | |
git diff && git diff-index --quiet --exit-code HEAD |