Skip to content

Commit 216a46a

Browse files
committed
Add integration test
1 parent ccb1a6e commit 216a46a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/integration.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Integration
2+
on: push
3+
env:
4+
MIX_ENV: test
5+
BRANCH: ${{ github.ref_name }}
6+
permissions:
7+
contents: read
8+
jobs:
9+
test:
10+
services:
11+
db:
12+
image: postgres:12
13+
ports: ['5432:5432']
14+
env:
15+
POSTGRES_PASSWORD: postgres
16+
options: >-
17+
--health-cmd pg_isready
18+
--health-interval 10s
19+
--health-timeout 5s
20+
--health-retries 5
21+
continue-on-error: true
22+
strategy:
23+
fail-fast: false
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+
elixir: ["main"]
35+
otp: ["maint"]
36+
runs-on: ubuntu-latest
37+
name: ${{matrix.app}}
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
repository: elixir-cldr/${{matrix.app}}
42+
- uses: erlef/setup-beam@v1
43+
with:
44+
otp-version: ${{matrix.otp}}
45+
elixir-version: ${{matrix.elixir}}
46+
- run: mix deps.get && mix deps.compile && mix compile --warnings-as-errors && mix test

0 commit comments

Comments
 (0)