aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 774f4a5ea7589f1995c109ee8cbbf4b1710043cf (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.15.0
        with:
          otp-version: "24.2.2"
          gleam-version: "0.28.3"
      - 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