-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 956 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on: push
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
name: Protobuf lint
container:
image: bufbuild/buf:1.23.1
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: lint
run: buf lint
- name: format
run: buf format --exit-code
fishjam_protos_lint:
runs-on: ubuntu-latest
name: CI elixir lint
strategy:
matrix:
otp: ['27']
elixir: ['1.17']
steps:
- name: Install dependencies
run: mix deps.get
- name: Compile without warnings
id: compile
run: mix compile --warnings-as-errors
- name: Check formatting
if: ${{ !cancelled() && steps.compile.outcome == 'success' }}
run: mix format --check-formatted