Skip to content

Commit

Permalink
Add github action for lint, format and build
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 6, 2024
1 parent 2f59dbf commit e639ee3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: my-workflow
on:
push:
branches:
- main
jobs:
build-lint:
name: Build and Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install deps
run: bun install --frozen-lockfile
- name: Lint
run: bunx eslint .
- name: Format
run: bunx prettier . --check
- name: Build web app
working-directory: web
run: bun run build

0 comments on commit e639ee3

Please sign in to comment.