From e639ee3d4b4ddbd396e04d4822f9151028d7e9c0 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 6 Feb 2024 13:32:42 +0000 Subject: Add github action for lint, format and build --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..e59a1bd9 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 -- cgit v1.2.3-70-g09d2