Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
create_otp_matrix:
name: Generate a list of last OTP versions
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
otps: ${{ steps.versions.outputs.versions }}
steps:
Expand All @@ -22,16 +22,21 @@ jobs:

test_erlang:
name: Test examples against OTP ${{ matrix.otp }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [create_otp_matrix]
strategy:
matrix:
otp: ${{fromJson(needs.create_otp_matrix.outputs.otps)}}
container:
image: erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install dependencies
run: apt update && apt install --yes jq
- name: install jq
uses: dcarbone/install-jq-action@b7ef57d46ece78760b4019dbc4080a1ba2a40b45
with:
version: 1.7

- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: run tests
run: ./bin/run_ci.sh
15 changes: 11 additions & 4 deletions .github/workflows/uuid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ on: [push, pull_request]

jobs:
uuid:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: sudo apt install --yes jq
- run: |
- name: Install jq
uses: dcarbone/install-jq-action@b7ef57d46ece78760b4019dbc4080a1ba2a40b45
with:
version: 1.7

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Check
run: |
bad_uuid=$(cat config.json | jq --raw-output '.exercises | map(.uuid) | .[]' | grep -vE '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' || true)
if [[ -n "$bad_uuid" ]]; then
printf "Invalid UUID(s) found:"
Expand Down
Loading