cron #243
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: cron | |
on: | |
schedule: | |
- cron: "0 0 * * 0" # @weekly https://crontab.guru/ | |
jobs: | |
build: | |
name: Scheduled fitness function verification | |
runs-on: ubuntu-latest | |
env: | |
YARN_NODE_LINKER: pnp | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
# with: | |
# lfs: true | |
- name: Git LFS Hashes | |
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-hashes | |
- name: Restore Git LFS Cache | |
uses: actions/cache/[email protected] | |
id: lfs-cache | |
with: | |
path: .git/lfs | |
key: ${{runner.os}}-lfs-${{hashFiles('.lfs-hashes')}} | |
restore-keys: | | |
${{runner.os}}-lfs- | |
- name: Pull Git LFS | |
run: git lfs pull | |
- uses: actions/[email protected] | |
with: | |
node-version-file: .nvmrc | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Dedupe Dependencies | |
if: always() | |
run: yarn dedupe --check | |
- name: Audit Direct Dependencies | |
if: always() | |
run: yarn npm audit --all | |
- name: Audit Transitive Production Dependencies | |
if: always() | |
run: yarn npm audit --all --recursive --environment=production --severity=moderate | |
- name: Audit Transitive Dependencies | |
if: always() | |
run: yarn npm audit --all --recursive --severity=high | |
#- name: Audit Transitive Dependencies | |
# if: always() | |
# run: yarn audit-ci | |
- name: Dependency Maintenance | |
if: always() | |
run: yarn libyear --all | |
timeout-minutes: 15 |