-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (62 loc) · 1.35 KB
/
pull-request.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Pull Request → Main"
on:
pull_request:
branches:
- main
concurrency:
cancel-in-progress: true
group: "ci-${{ github.head_ref }}"
jobs:
build-test:
name: Test Build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: ./.github/actions/build
with:
target: test
style:
name: Format
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
needs: build-test
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: ./.github/actions/build
with:
target: test
- name: Run format
env:
MIX_ENV: test
run: mix format --check-formatted --dry-run
test:
name: Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
needs: build-test
strategy:
fail-fast: false
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: ./.github/actions/build
with:
target: test
- name: Run Tests
run: "mix test --no-deps-check --no-archives-check --no-compile --no-elixir-version-check --preload-modules"