This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
use --check #6
Workflow file for this run
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: ts-lint | |
on: push | |
defaults: | |
run: | |
shell: nu {0} | |
jobs: | |
ts-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- uses: hustcer/setup-nu@main | |
with: | |
version: "*" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
# Make sure the actual branch is checked out when running on pull requests | |
ref: ${{ github.head_ref }} | |
- name: Prettify code | |
uses: creyD/prettier_action@v4.3 | |
with: | |
# This part is also where you can pass other options, for example: | |
prettier_options: --check **/*.{ts,md,yml} |