mirror of
https://github.com/tailscale/github-action.git
synced 2026-08-21 00:29:22 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e8c483db8...de0fac2e45)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: "Lint Checks"
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
# Basic linter check
|
|
lint-check:
|
|
name: Lint check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
|
with:
|
|
node-version: "24"
|
|
cache: "npm"
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run formatter check
|
|
run: |
|
|
./node_modules/.bin/prettier --check --loglevel silent "src/**/*.ts" || ( \
|
|
echo "Run this command on your local device to fix the error:" && \
|
|
echo "" && \
|
|
echo " make format" && \
|
|
echo "" && exit 1)
|
|
|
|
- name: Run build check
|
|
run: |
|
|
npm run build && test -z "$(git status --porcelain)" || ( \
|
|
echo "dist is out of date, run this command on your local device to fix the error:" && \
|
|
echo "" && \
|
|
echo " make build" && \
|
|
echo "" && exit 1)
|