Skip to content

Commit 5ccef67

Browse files
committed
Add integration test
1 parent a3eb7df commit 5ccef67

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

.github/workflows/integration.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
- name: Checkout ${{github.repository_owner}}/${{matrix.app}}
54+
uses: actions/checkout@v4
55+
with:
56+
path: ${{matrix.app}}
57+
repository: ${{github.repository_owner}}/${{matrix.app}}
58+
- name: Checkout ${{github.repository}}
59+
uses: actions/checkout@v4
60+
with:
61+
path: ${{github.ref_name}}
62+
repository: ${{github.repository}}
63+
ref: ${{github.ref_name}}
64+
65+
- name: Built release
66+
working-directory: ./${{github.ref_name}}
67+
run: mix hex.build -o ${{env.CLDR_PATH}} --unpack
68+
69+
- run: mix deps.get
70+
- run: mix deps.compile
71+
- run: mix compile --warnings-as-errors
72+
- run: mix test
73+
- run: 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)