|
| 1 | +name: Integration |
| 2 | +on: push |
| 3 | +env: |
| 4 | + MIX_ENV: test |
| 5 | + CLDR_PATH: ${{github.workspace}}/${{github.ref_name}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}} |
| 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 | + max-parallel: 1 |
| 25 | + matrix: |
| 26 | + app: ["cldr_calendars", "cldr_calendars_composite", "cldr_calendars_coptic", |
| 27 | + "cldr_calendars_ethiopic", "cldr_calendars_format", |
| 28 | + "cldr_calendars_japanese", "cldr_calendars_lunisolar", |
| 29 | + "cldr_calendars_persian", "cldr_collation", "cldr_currencies", |
| 30 | + "cldr_dates_times", "cldr_html", "cldr_languages", "cldr_lists", |
| 31 | + "cldr_locale_display", "cldr_messages", "cldr_numbers", |
| 32 | + "cldr_person_names", "cldr_plugs", "cldr_print", "cldr_routes", |
| 33 | + "cldr_sql", "cldr_strftime", "cldr_territories", "cldr_text", |
| 34 | + "cldr_trans", "cldr_units", "cldr_units_sql", "cldr_utils"] |
| 35 | + include: |
| 36 | + - spec: lastest |
| 37 | + elixir: lastest |
| 38 | + otp: lastest |
| 39 | + - spec: min |
| 40 | + elixir: "1.13" |
| 41 | + otp: "25" |
| 42 | + runs-on: ubuntu-latest |
| 43 | + name: ${{matrix.elixir}}-otp-${{matrix.otp}} ${{matrix.app}} |
| 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 help | grep -E '(^| )dialyzer( |$)' && mix dialyzer |
0 commit comments