ops: added a lint rule and adjusted the build workflow
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
name: formatcheck
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
Reference in New Issue
Block a user