aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 3aa3f4d07731628a3b27df40b7ca355f3e552141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: CI

on:
  push:
    branches:
      - "main"
      - "v*.*.*"
  pull_request:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3.1.0
      - uses: erlef/setup-beam@v1.16.0
        with:
          otp-version: "26.0.2"
          gleam-version: "0.30.2"
      - uses: actions/setup-node@v3.5.1
        with:
          node-version: "16.18.1"
      - run: gleam test --target erlang
      - run: gleam test --target javascript
      - run: gleam format --check src test