Skip to content

Bump gitleaks from 8.21.2 to 8.22.0 (#20) #55

Bump gitleaks from 8.21.2 to 8.22.0 (#20)

Bump gitleaks from 8.21.2 to 8.22.0 (#20) #55

---
name: Functional Tests
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- .github/workflows/functional-tests.yml
- action.yml
push:
branches:
- main
schedule:
# Every Friday at 09:00 JST
- cron: "0 0 * * 5"
workflow_dispatch: {}
defaults:
run:
shell: sh
jobs:
get-versions:
name: Get 5 latest versions
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
versions: ${{ steps.prepare-list.outputs.versions }}
steps:
- name: Prepare list
id: prepare-list
run: |
url="https://api.github.com/repos/ciao-lang/ciao/releases"
versions=$(curl -s "${url}" | jq -c '[.[0:5][].tag_name] | map(sub("^v"; ""))')
echo "versions=${versions}" >> "$GITHUB_OUTPUT"
setup-ciao:
name: Setup Ciao
needs: [get-versions]
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "macos"]
version: ${{ fromJSON(needs.get-versions.outputs.versions) }}
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
- name: Setup Ciao
uses: ./
with:
version: ${{ matrix.version }}
- name: Run command
run: ciao list