Skip to content

Commit

Permalink
Leverage release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
Schultzer committed Apr 29, 2024
1 parent 77cfa6d commit 2c969c3
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 2c969c3

Please sign in to comment.