Skip to content

Update taiki-e/install-action action to v2.82.0 #125

Update taiki-e/install-action action to v2.82.0

Update taiki-e/install-action action to v2.82.0 #125

Workflow file for this run

---
name: Continuous Integration
"on":
pull_request:
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
targets:
name: Enumerate Just recipes
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
matrix: ${{ steps.export-targets.outputs.targets }}
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Just
uses: taiki-e/install-action@b8cecb83565409bcc297b2df6e77f030b2a468d5 # v2.82.0
with:
tool: just
- name: Export targets
id: export-targets
run: echo "targets=$(just --list | awk '/build-|check-|format-|lint-|test-/{print $1}' | jq -cnR '[inputs]')" >> "$GITHUB_OUTPUT"
checks:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
permissions:
contents: read
needs: targets
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.targets.outputs.matrix) }}
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Flox
uses: flox/install-flox-action@f6002ed63e483f134001de7b4b45be891e00b09f # v2.5.1
- name: Remove Flox installer (if it exists)
run: rm -f flox.x86_64-linux.deb
- name: Run check with Just
uses: flox/activate-action@7065dcbe5583b7b015f07a8ebd49d7266e3053e8 # v1.1.1
with:
command: just ${{ matrix.target }}
success:
name: All checks succeeded
runs-on: ubuntu-latest
permissions: {}
needs: checks
if: always()
steps:
- name: Check if all checks succeeded
# `needs` is a list of job names, which themselves are generated from
# the output of `just --list`, so we ignore the template injection here.
# zizmor: ignore[template-injection]
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'