Skip to content

Commit

Permalink
Add linting test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
arctixdev committed Feb 19, 2024
1 parent aa86745 commit d02c6f4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint frontend
on:
push:
pull_request:
workflow_dispatch:

env:
NODE_VERSION: '18.x' # set this to the node version to use

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: bun install --frozen-lockfile --silent
env:
CI: true
- name: Lint
run: bunx pre-commit run -a
env:
CI: true
- name: Build
run: bun build
env:
CI: true

0 comments on commit d02c6f4

Please sign in to comment.