-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.13 KB
/
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
38
39
40
41
42
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Erlang + Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 25.3
elixir-version: 1.14.3
- name: Restore Dependencies Cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install Dependencies
run: mix deps.get
- name: Lint
run: mix format --check-formatted
- name: Test
run: mix test
- name: Upload Test Results to BuildPulse for Flaky Test Detection
if: '!cancelled()' # Run this step even when the tests fail. Skip if the workflow is cancelled.
uses: buildpulse/buildpulse-action@main
with:
account: 68192324 # Replace this value with your BuildPulse account ID
repository: 616684383 # Replace this value with your BuildPulse repository ID
path: tmp/
key: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }}
secret: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}