@@ -2,7 +2,7 @@ name: Integration
22on : push
33env :
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 }}
66permissions :
77 contents : read
88jobs :
@@ -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