-
-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (45 loc) · 1.17 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
43
44
45
46
47
48
49
50
51
52
name: CI
on: [pull_request]
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup BEAM
uses: erlef/setup-beam@v1
with:
otp-version: "25.2"
elixir-version: "1.14.2"
- name: Fetch Hex Cache
uses: actions/cache@v3
id: hex-cache
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Run Tests
run: |
mix deps.get
mix test
- name: Publish Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ success() || failure() }}
with:
comment_mode: "off"
junit_files: _build/test/lib/oapi_generator/*.xml
diff:
name: "Generate Diff"
runs-on: ubuntu-latest
steps:
- name: Dispatch Workflow
env:
TOKEN: ${{ secrets.DIFF_TOKEN }}
run: |
gh workflow run generate.yml --repo aj-foster/open-api-diffs --field key=$GITHUB_REF_NAME