Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bwireman committed Jun 8, 2024
1 parent 7663f01 commit e1a4258
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Test

on:
push:
Expand All @@ -14,11 +14,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
Expand All @@ -28,11 +23,22 @@ jobs:
- run: gleam test
- run: gleam format --check src test

erlang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.2.0"
rebar3-version: "3"
- run: gleam run

node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
Expand All @@ -58,6 +64,5 @@ jobs:
gleam-version: "1.2.0"
rebar3-version: "3"
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: gleam run --target javascript --runtime bun
- run: gleam run --target javascript --runtime bun

0 comments on commit e1a4258

Please sign in to comment.