Skip to content

Commit

Permalink
feat(ci): add lint github action
Browse files Browse the repository at this point in the history
Signed-off-by: iverly <github@iverly.net>
  • Loading branch information
iverly committed Oct 23, 2023
1 parent 45103a2 commit 7c13a3d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint

on:
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

- name: Checkout Master
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2.4.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install Dependencies
run: pnpm i

- name: Lint Prettier
run: pnpm lint:prettier

- name: Lint ESLint
run: pnpm lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "faast-rt-docs",
"version": "0.0.1",
"description": "The official documentation repository for Faast",
"packageManager": "pnpm@8.8.0",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down

0 comments on commit 7c13a3d

Please sign in to comment.