From 993805e82abcaf84e86a85000a5305fdbfa791ec Mon Sep 17 00:00:00 2001 From: Benjamin Schultzer Date: Sun, 21 Apr 2024 15:57:13 -0400 Subject: [PATCH] Add integration test --- .github/workflows/integration.yml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 000000000..9f9eae86d --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,41 @@ +name: Integration +on: push +env: + MIX_ENV: test + BRANCH: ${{ github.ref_name }} +permissions: + contents: read +jobs: + test: + strategy: + matrix: + app: ["cldr_calendars", "cldr_calendars_composite", "cldr_calendars_coptic", + "cldr_calendars_ethiopic", "cldr_calendars_format", + "cldr_calendars_japanese", "cldr_calendars_lunisolar", + "cldr_calendars_persian", "cldr_collation", "cldr_currencies", + "cldr_dates_times", "cldr_html", "cldr_languages", "cldr_lists", + "cldr_locale_display", "cldr_messages", "cldr_numbers", + "cldr_person_names", "cldr_plugs", "cldr_print", "cldr_routes", + "cldr_sql", "cldr_strftime", "cldr_territories", "cldr_text", + "cldr_trans", "cldr_units", "cldr_units_sql", "cldr_utils"] + elixir: ['1.16'] + otp: ['26.2'] + + runs-on: ubuntu-latest + name: ${{matrix.app}} + steps: + - uses: actions/checkout@v4 + with: + repository: elixir-cldr/${{matrix.app}} + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + - uses: actions/cache@v4 + with: + path: | + deps + _build + key: ${{runner.os}}-${{matrix.app}}-mix-${{hashFiles('**/mix.lock')}} + restore-keys: ${{runner.os}}-${{matrix.app}}-mix- + - run: mix deps.get && mix compile --warnings-as-errors && mix test