Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,42 @@ name: test
on:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- { name: erlang, runtime: "" }
- { name: javascript, runtime: node }
- { name: javascript, runtime: bun }
- { name: javascript, runtime: deno }
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: "28.3.0"
gleam-version: "1.14.0"
rebar3-version: "3.26.0"
- uses: oven-sh/setup-bun@v2
if: matrix.target.runtime == 'bun'
- uses: denoland/setup-deno@v2
if: matrix.target.runtime == 'deno'
with:
deno-version: v2.x
- run: gleam deps download
- run: gleam test
- run: gleam test --target ${{ matrix.target.name }} ${{ matrix.target.runtime && format('--runtime {0}', matrix.target.runtime) || '' }}

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "28.3.0"
gleam-version: "1.14.0"
rebar3-version: "3.26.0"
- run: gleam format --check src test
2 changes: 1 addition & 1 deletion codebook.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ words = [
"webls", "rss", "googlebot", "bingbot",
# code words
"ttl", "perma", "rebar", "otp", "erlef", "gleeunit",
"simplifile",
"simplifile", "deno",
# other words
"versecafe"
]
Expand Down
3 changes: 3 additions & 0 deletions gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ gleam_time = ">= 1.6.0 and < 2.0.0"
[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
simplifile = ">= 2.3.2 and < 3.0.0"

[javascript.deno]
allow_read = true