chore(ci) added a proper ci
Signed-off-by: Jason Pochanke <handyjason053@gmail.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
|||||||
|
name: Build and Bundle Gleam App
|
||||||
|
run-name: ${{ gitea.actor }} pushed a commit
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**" # 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
|
||||||
|
|
||||||
|
build-and-bundle:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
# Replace this with the path to the image you built and pushed
|
||||||
|
image: jaypoch/lumabuilder:latest
|
||||||
|
|
||||||
|
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/luma/luma.mjs \
|
||||||
|
# --bundle \
|
||||||
|
# --outfile=parser.js \
|
||||||
|
# --format=iife \
|
||||||
|
# --global-name=App
|
||||||
|
# - name: Upload parser.js
|
||||||
|
# uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
|
# with:
|
||||||
|
# name: parser-js
|
||||||
|
# path: parser.js
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
name: test
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- uses: erlef/setup-beam@v1
|
|
||||||
with:
|
|
||||||
otp-version: "29"
|
|
||||||
gleam-version: "1.17.0"
|
|
||||||
rebar3-version: "3"
|
|
||||||
# elixir-version: "1"
|
|
||||||
- run: gleam deps download
|
|
||||||
- run: gleam test
|
|
||||||
- run: gleam format --check src test
|
|
||||||
Reference in New Issue
Block a user