Skip to content

Trunk Nightly

Trunk Nightly #335

Workflow file for this run

name: Trunk Nightly
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: false
on:
schedule:
- cron: 0 8 * * 1-5
workflow_dispatch: {}
jobs:
trunk_check:
name: Trunk Check Runner
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Cache node modules
id: cache-yarn
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- if: steps.cache-yarn.outputs.cache-hit != 'true'
name: 📦 Install Dependencies
env:
NOYARNPOSTINSTALL: 1
run: yarn install --frozen-lockfile
- name: Trunk Check
uses: trunk-io/trunk-action@v1
with:
trunk-token: ${{ secrets.TRUNK_TOKEN }}