run_action_checks.yml

 1# Generated from xtask::workflows::run_action_checks
 2# Rebuild with `cargo xtask workflows`.
 3name: run_action_checks
 4env:
 5  CARGO_TERM_COLOR: always
 6  RUST_BACKTRACE: '1'
 7  CARGO_INCREMENTAL: '0'
 8on:
 9  pull_request:
10    branches:
11    - '**'
12    paths:
13    - .github/workflows/**
14    - .github/actions/**
15    - .github/actionlint.yml
16    - script/**
17  push:
18    branches:
19    - main
20    - v[0-9]+.[0-9]+.x
21    paths:
22    - .github/workflows/**
23    - .github/actions/**
24    - .github/actionlint.yml
25    - script/**
26jobs:
27  actionlint:
28    if: github.repository_owner == 'zed-industries'
29    runs-on: namespace-profile-2x4-ubuntu-2404
30    steps:
31    - name: steps::checkout_repo
32      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
33      with:
34        clean: false
35    - id: get_actionlint
36      name: run_action_checks::download_actionlint
37      run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
38      shell: bash -euxo pipefail {0}
39    - name: run_action_checks::run_actionlint
40      run: |
41        ${{ steps.get_actionlint.outputs.executable }} -color
42      shell: bash -euxo pipefail {0}
43    timeout-minutes: 60
44  shellcheck:
45    if: github.repository_owner == 'zed-industries'
46    runs-on: namespace-profile-2x4-ubuntu-2404
47    steps:
48    - name: steps::checkout_repo
49      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
50      with:
51        clean: false
52    - name: run_action_checks::run_shellcheck
53      run: ./script/shellcheck-scripts error
54      shell: bash -euxo pipefail {0}
55    timeout-minutes: 60
56concurrency:
57  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
58  cancel-in-progress: true