ops: added a lint rule and adjusted the build workflow
Build and Bundle Gleam App / format (push) Failing after 9s
Build and Bundle Gleam App / build-and-bundle (push) Successful in 14s
Build and Bundle Gleam App / publish (push) Failing after 0s

This commit is contained in:
2026-07-10 00:23:48 +02:00
parent 5bcae0e0d6
commit a45e622bb3
11 changed files with 93 additions and 51 deletions
+18 -3
View File
@@ -7,6 +7,21 @@ on:
- "**" # Triggers on every commit to any branch
jobs:
format:
runs-on: ubuntu-latest
container:
image: jaypoch/lumabuilder:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checking the format
run: gleam format --check
publish:
runs-on: ubuntu-latest
container:
image: jaypoch/lumabuilder:latest
build-and-bundle:
runs-on: ubuntu-latest
container:
@@ -16,13 +31,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Gleam to JavaScript
run: gleam build --target javascript
- name: Build bundle
run: |
esbuild build/dev/javascript/markdown2/markdown2.mjs \
esbuild build/dev/javascript/luma/luma.mjs \
--bundle \
--outfile=parser.js \
--format=iife \
@@ -31,4 +46,4 @@ jobs:
uses: https://gitea.com/actions/upload-artifact@v3
with:
name: parser-js
path: parser.js
path: parser.js
+8
View File
@@ -0,0 +1,8 @@
name: formatcheck
on:
pull_request:
push:
branches: [main]
jobs: