2023-01-25 22:46:38 +00:00
|
|
|
name: main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
pull_request:
|
|
|
|
branches: ["**"]
|
|
|
|
|
|
|
|
concurrency:
|
2023-12-09 00:16:46 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
2023-01-25 22:46:38 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2023-12-09 00:16:46 +00:00
|
|
|
|
2023-01-25 22:46:38 +00:00
|
|
|
steps:
|
2023-12-09 00:16:46 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: erlef/setup-beam@v1
|
2023-01-25 22:46:38 +00:00
|
|
|
with:
|
2024-03-11 23:22:31 +00:00
|
|
|
otp-version: "26.2"
|
2024-08-12 21:32:37 +00:00
|
|
|
gleam-version: "1.4.1"
|
2023-12-09 00:16:46 +00:00
|
|
|
|
|
|
|
- uses: actions/setup-node@v3
|
2023-01-28 21:00:29 +00:00
|
|
|
with:
|
2023-12-09 00:16:46 +00:00
|
|
|
node-version: "20.x"
|
|
|
|
|
|
|
|
- run: gleam format --check
|
|
|
|
|
2023-01-28 21:00:29 +00:00
|
|
|
- run: gleam test --target erlang
|
2023-12-09 00:16:46 +00:00
|
|
|
- run: gleam test --target javascript
|