Skip to content

Commit 93938ef

Browse files
committed
Leverage release candidate
1 parent 77cfa6d commit 93938ef

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

.github/workflows/integration.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Integration
22
on: push
33
env:
44
MIX_ENV: test
5-
CLDR_BRANCH: ${{ github.ref_name }}
5+
CLDR_PATH: ${{github.workspace}}/${{github.ref_name}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}
66
permissions:
77
contents: read
88
jobs:
@@ -31,16 +31,42 @@ jobs:
3131
"cldr_person_names", "cldr_plugs", "cldr_print", "cldr_routes",
3232
"cldr_sql", "cldr_strftime", "cldr_territories", "cldr_text",
3333
"cldr_trans", "cldr_units", "cldr_units_sql", "cldr_utils"]
34-
elixir: ["main"]
35-
otp: ["maint"]
34+
elixir: ["1.12", "main"]
35+
otp: ["22", "maint"]
3636
runs-on: ubuntu-latest
3737
name: ${{matrix.app}}
3838
steps:
39-
- uses: actions/checkout@v4
40-
with:
41-
repository: elixir-cldr/${{matrix.app}}
42-
- uses: erlef/setup-beam@v1
39+
- name: Set up Elixir
40+
uses: erlef/setup-beam@v1
4341
with:
4442
otp-version: ${{matrix.otp}}
4543
elixir-version: ${{matrix.elixir}}
46-
- run: mix deps.get && mix deps.compile && mix compile --warnings-as-errors && mix test
44+
- name: Checkout ${{github.repository_owner}}/${{matrix.app}}
45+
uses: actions/checkout@v4
46+
with:
47+
path: ${{matrix.app}}
48+
repository: ${{github.repository_owner}}/${{matrix.app}}
49+
- name: Checkout ${{github.repository}}
50+
uses: actions/checkout@v4
51+
with:
52+
path: ${{github.ref_name}}
53+
repository: ${{github.repository}}
54+
ref: ${{github.ref_name}}
55+
56+
- name: Built release
57+
run: cd ${{github.workspace}}/${{github.ref_name}} && mix hex.build -o ${{CLDR_PATH}} --unpack
58+
59+
- name: Install dependencies
60+
run: cd ${{github.workspace}}/${{matrix.app}} && mix deps.get && && mix deps.compile
61+
62+
- name: Compiles without warnings
63+
run: mix compile --warnings-as-errors
64+
65+
# - name: Check Formatting
66+
# run: mix format --check-formatted
67+
68+
- name: Run tests
69+
run: mix test
70+
71+
- name: Run dialyzer
72+
run: mix dialyzer

0 commit comments

Comments
 (0)