Skip to content

Commit

Permalink
build: cli checks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Feb 17, 2024
1 parent 623070f commit 9a5bb0f
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Checks

on:
pull_request:
paths:
- 'cli/**'

defaults:
run:
working-directory: ./cli

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
uses: ./.github/actions/prepare
- name: Build
run: npm run build

format:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
uses: ./.github/actions/prepare
- name: Lint
run: npm run format:check

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
uses: ./.github/actions/prepare
- name: Lint
run: npm run lint

may-merge:
needs: ['format', 'lint', 'build']
runs-on: ubuntu-latest
steps:
- name: Cleared for merging
run: echo OK

0 comments on commit 9a5bb0f

Please sign in to comment.