Skip to content

Speed up GitHub Actions #4

Speed up GitHub Actions

Speed up GitHub Actions #4

Workflow file for this run

name: Depcheck
on: [push, pull_request]
jobs:
depcheck:
name: Run depcheck script
runs-on: ubuntu-latest
env:
TERM: xterm
FORCE_COLOR: 1
NODE_VERSION: 16.14 # Should be moved to repository env variable
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- run: yarn --immutable
- name: "Build Code"
run: yarn prepack:all
- name: "Run depcheck script"
run: node scripts/benjies-depcheck.mjs