|
| 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 dialyzer |
0 commit comments