Skip to content

Bump actions/checkout from 4.2.0 to 4.2.2 #437

Bump actions/checkout from 4.2.0 to 4.2.2

Bump actions/checkout from 4.2.0 to 4.2.2 #437

Workflow file for this run

name: Exercism Erlang Track verification
on: [push, pull_request]
jobs:
create_otp_matrix:
name: Generate a list of last OTP versions
runs-on: ubuntu-22.04
outputs:
otps: ${{ steps.versions.outputs.versions }}
steps:
- name: Clone the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Get latest OTP versions
id: versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
all_versions=$(gh api graphql -f query='query { repository(owner: "erlang", name: "otp") { releases(last: 100, orderBy: {field: CREATED_AT, direction: ASC}) { nodes { tagName } } } }' --jq '.data.repository.releases.nodes[].tagName | select(. | contains("rc") | not) | .[4:8] | select(test("^[0-9]+\\.[0-9]+$"))' | sort -u -n)
latest_versions=$(./bin/get_latest_majors_for_ci_matrix.py <<< "$all_versions")
printf "::set-output name=versions::%s" "$latest_versions"
test_erlang:
name: Test examples against OTP ${{ matrix.otp }}
runs-on: ubuntu-22.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: run tests
run: ./bin/run_ci.sh