Skip to content

Commit

Permalink
Cleanup GitHub Actions workflows (#6767)
Browse files Browse the repository at this point in the history
* Cleanup GitHub Actions workflows
* Remove custom cache action, replace with action/setup-node's built-in
* Add `workflow_dispatch:` to all remaining workflows
  • Loading branch information
danielrozenberg authored Feb 21, 2024
1 parent bb25b33 commit 9803724
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 636 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/check-grow-link-integrity.yaml

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/lint-js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'Lint: JavaScript'

on:
workflow_dispatch:
push:
paths:
- '**/*.js'
Expand All @@ -16,15 +17,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 14

- uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: '**/node_modules'
key: node_modules-${{ hashFiles('**/package-lock.json') }}
cache: npm

- name: Installing Node.js packages
run: npm install
run: npm ci

- name: Linting JavaScript files
run: |
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/lint-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'Lint: YAML'

on:
workflow_dispatch:
push:
paths:
- '**/*.yml'
Expand All @@ -18,15 +19,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 14

- uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: '**/node_modules'
key: node_modules-${{ hashFiles('**/package-lock.json') }}
cache: npm

- name: Installing Node.js packages
run: npm install
run: npm ci

- name: Linting YAML files
run: |
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/nightly.yaml

This file was deleted.

216 changes: 0 additions & 216 deletions .github/workflows/release-production.yaml

This file was deleted.

Loading

0 comments on commit 9803724

Please sign in to comment.