aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: ec12a1be7610329511c82ecc9faea93690e9ee0c (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
      - uses: erlef/setup-beam@v1
        with:
          otp-version: "26.0.2"
          gleam-version: "0.34.0"
      - 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