Skip to content

Commit

Permalink
check formatting and build on push
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Jul 9, 2024
1 parent 36d9f5a commit a2400cf
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push

jobs:
build-check:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Checkout the repo
uses: actions/checkout@v4

- name: Install npm-run-all
run: npm install npm-run-all

- name: Check formatting
run: npm run build

22 changes: 22 additions & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Formatting

on:
push

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Checkout the repo
uses: actions/checkout@v4

- name: Install prettier
run: npm install --save-dev --save-exact prettier

- name: Check formatting
run: npx prettier --check src/

0 comments on commit a2400cf

Please sign in to comment.