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

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

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2.0.0
      - uses: gleam-lang/setup-erlang@v1.0.0
        with:
          otp-version: 22.2
      - uses: gleam-lang/setup-gleam@v1.0.1
        with:
          gleam-version: 0.9.0
      - run: rebar3 install_deps
      - run: rebar3 eunit
      - run: gleam format --check src test