Skip to content

Lint with all workflows with actionlint #7949

Lint with all workflows with actionlint

Lint with all workflows with actionlint #7949

Workflow file for this run

name: Tests
on:
pull_request:
types: [opened, synchronize, closed]
branches: [main, master]
pull_request_target:
types: [opened, synchronize, closed]
branches: [main, master]
jobs:
lint:
name: Lint workflows
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
# # https://github.com/rhysd/actionlint/blob/main/docs/usage.md
# - name: Check workflow files
# env:
# ACTIONLINT_VERSION: 1.6.27
# run: |
# echo "::add-matcher::.github/actionlint-matcher.json"
# bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
# ./actionlint -color -shellcheck=
# shell: bash
# https://github.com/reviewdog/action-actionlint
- name: Check workflow files
uses: reviewdog/action-actionlint@v1.43.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
actionlint_flags: -color -shellcheck=
fail_on_error: true
flowzone:
name: Flowzone
needs: lint
uses: ./.github/workflows/flowzone.yml
# prevent duplicate workflow executions for pull_request and pull_request_target
if: |
(
github.event.pull_request.head.repo.full_name == github.repository &&
github.event_name == 'pull_request'
) || (
github.event.pull_request.head.repo.full_name != github.repository &&
github.event_name == 'pull_request_target'
)
secrets: inherit
with:
working_directory: ./tests
docker_images: |
ghcr.io/product-os/flowzone
balena_slugs: |
product_os/flowzone
cargo_targets: |
x86_64-unknown-linux-gnu,
armv7-unknown-linux-gnueabi,
aarch64-unknown-linux-gnu
cloudflare_website: "flowzone"
bake_targets: default,multiarch
jobs_timeout_minutes: 30
docker_publish_platform_tags: true
docker_runs_on: >
{
"linux/arm64": ["self-hosted","ARM64"],
"linux/arm/v7": ["self-hosted","ARM64"],
"linux/arm/v6": ["self-hosted","X64"]
}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
custom_runs_on: >
[
["ubuntu-20.04"],
["ubuntu-22.04"],
["ubuntu-latest"],
["macos-13"],
["windows-2019"],
["windows-2022"],
["self-hosted"]
]
custom_environments: test