From 2c969c3677186d2ffdfd4e209cd615910236fe66 Mon Sep 17 00:00:00 2001 From: Benjamin Schultzer Date: Sun, 28 Apr 2024 17:28:01 -0400 Subject: [PATCH] Leverage release candidate --- .github/workflows/integration.yml | 47 +++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0b59868f1..10cb2b72d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -2,7 +2,7 @@ name: Integration on: push env: MIX_ENV: test - CLDR_BRANCH: ${{ github.ref_name }} + CLDR_PATH: ${{github.workspace}}/${{github.ref_name}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}} permissions: contents: read jobs: @@ -31,16 +31,47 @@ jobs: "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: ["main"] - otp: ["maint"] + include: + - elixir: "1.12" + - elixir: "main" + - otp: "22" + - otp: "maint" + # elixir: ["1.12", "main"] + # otp: ["22", "maint"] runs-on: ubuntu-latest name: ${{matrix.app}} steps: - - uses: actions/checkout@v4 - with: - repository: elixir-cldr/${{matrix.app}} - - uses: erlef/setup-beam@v1 + - name: Set up Elixir + uses: erlef/setup-beam@v1 with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} - - run: mix deps.get && mix deps.compile && mix compile --warnings-as-errors && mix test + - name: Checkout ${{github.repository_owner}}/${{matrix.app}} + uses: actions/checkout@v4 + with: + path: ${{matrix.app}} + repository: ${{github.repository_owner}}/${{matrix.app}} + - name: Checkout ${{github.repository}} + uses: actions/checkout@v4 + with: + path: ${{github.ref_name}} + repository: ${{github.repository}} + ref: ${{github.ref_name}} + + - name: Built release + run: cd ${{github.workspace}}/${{github.ref_name}} && mix hex.build -o ${{env.CLDR_PATH}} --unpack + + - name: Install dependencies + run: cd ${{github.workspace}}/${{matrix.app}} && mix deps.get && mix deps.compile + + - name: Compiles without warnings + run: mix compile --warnings-as-errors + + # - name: Check Formatting + # run: mix format --check-formatted + + - name: Run tests + run: mix test + + - name: Run dialyzer + run: mix dialyzer