Skip to content

Commit 6deb29e

Browse files
committed
Add integration test
1 parent a3eb7df commit 6deb29e

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

.github/workflows/integration.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Integration
2+
on: push
3+
env:
4+
CLDR_PATH: ${{github.workspace}}/${{github.ref_name}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}
5+
permissions:
6+
contents: read
7+
jobs:
8+
test:
9+
services:
10+
db:
11+
image: postgres:12
12+
ports: ['5432:5432']
13+
env:
14+
POSTGRES_PASSWORD: postgres
15+
options: >-
16+
--health-cmd pg_isready
17+
--health-interval 10s
18+
--health-timeout 5s
19+
--health-retries 5
20+
continue-on-error: true
21+
strategy:
22+
fail-fast: false
23+
max-parallel: 10
24+
matrix:
25+
app: [cldr_calendars, cldr_calendars_composite, cldr_calendars_coptic,
26+
cldr_calendars_ethiopic, cldr_calendars_format,
27+
cldr_calendars_japanese, cldr_calendars_lunisolar,
28+
cldr_calendars_persian, cldr_collation, cldr_currencies,
29+
cldr_dates_times, cldr_html, cldr_languages, cldr_lists,
30+
cldr_locale_display, cldr_messages, cldr_numbers,
31+
cldr_person_names, cldr_plugs, cldr_print, cldr_routes,
32+
cldr_sql, cldr_strftime, cldr_territories, cldr_text,
33+
cldr_trans, cldr_units, cldr_units_sql, cldr_utils]
34+
spec: [min, latest]
35+
include:
36+
- spec: min
37+
elixir: "1.13"
38+
otp: "25"
39+
- spec: latest
40+
elixir: latest
41+
otp: latest
42+
runs-on: ubuntu-latest
43+
name: ${{matrix.app}} ${{matrix.elixir}}-otp-${{matrix.otp}}
44+
defaults:
45+
run:
46+
working-directory: ./${{matrix.app}}
47+
steps:
48+
- name: Set up elixir ${{matrix.elixir}}-otp-${{matrix.otp}}
49+
uses: erlef/setup-beam@v1
50+
with:
51+
otp-version: ${{matrix.otp}}
52+
elixir-version: ${{matrix.elixir}}
53+
hexpm-mirrors: |
54+
https://builds.hex.pm
55+
https://cdn.jsdelivr.net/hex
56+
- name: Checkout ${{github.repository_owner}}/${{matrix.app}}
57+
uses: actions/checkout@v4
58+
with:
59+
path: ${{matrix.app}}
60+
repository: ${{github.repository_owner}}/${{matrix.app}}
61+
- name: Checkout ${{github.repository}}
62+
uses: actions/checkout@v4
63+
with:
64+
path: ${{github.ref_name}}
65+
repository: ${{github.repository}}
66+
ref: ${{github.ref_name}}
67+
68+
- name: Built release
69+
working-directory: ./${{github.ref_name}}
70+
run: mix hex.build -o ${{env.CLDR_PATH}} --unpack
71+
72+
- run: mix deps.get
73+
- run: mix deps.compile
74+
- run: mix compile --warnings-as-errors
75+
- run: mix test
76+
- run: mix help | grep -E '(^| )dialyzer( |$)' && mix dialyzer

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule Cldr.Mixfile do
77
[
88
app: :ex_cldr,
99
version: @version,
10-
elixir: "~> 1.12",
10+
elixir: "~> 1.13",
1111
name: "Cldr",
1212
source_url: "https://github.com/elixir-cldr/cldr",
1313
docs: docs(),

0 commit comments

Comments
 (0)