-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 1005 Bytes
/
turbo_lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Lint (Turbo)
on:
- pull_request
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
lint:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: moonrepo/setup-toolchain@v0
with:
# A GitHub action that sets up an environment for proto and moon.
# - Installs proto globally so that installed tools can also be executed globally.
# - Caches the toolchain (~/.proto) so subsequent runs are faster.
# - Hashes .prototools and .moon/toolchain.yml files to generate a unique cache key.
# - Cleans the toolchain before caching to remove unused or stale tools.
# See: https://github.com/moonrepo/setup-toolchain
auto-install: true
- name: Install
run: bun install --frozen-lockfile
- name: Lint with Turbo
run: bun x turbo lint -- --max-warnings=0