mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-28 03:46:18 +08:00
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: CI - Unused Exports, Types and Files
|
|
env:
|
|
NODE_OPTIONS: '--max_old_space_size=6144'
|
|
on:
|
|
schedule:
|
|
# runs every monday at 08:45 UTC
|
|
- cron: '45 8 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Find Unused
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- name: Checkout Source Files
|
|
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: pnpm
|
|
|
|
- name: Set Environment variables
|
|
run: |
|
|
cp sample.env .env
|
|
cat .env
|
|
|
|
- name: Run Checks
|
|
run: |
|
|
echo pnpm version $(pnpm -v)
|
|
pnpm install
|
|
pnpm run create:config
|
|
pnpm run knip
|