ci: define Ubuntu workflow triggers and permissions
This commit is contained in:
1 parent
0f8aa0a25d
commit
c88e683c6d
1 file changed
+26
-22
+26
-22
@@ -6,30 +6,34 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '23 4 * * 1'
|
- cron: '23 4 * * 1'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHONUNBUFFERED: '1'
|
||||||
|
PIP_DISABLE_PIP_VERSION_CHECK: '1'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu:
|
capabilities:
|
||||||
|
name: Capabilities and shell quality
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Install ShellCheck
|
- name: Install shell tools
|
||||||
run: sudo apt-get update && sudo apt-get install --yes shellcheck
|
|
||||||
- name: Shell syntax and lint
|
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
git ls-files -z '*.sh' | xargs -0 -r -n1 bash -n
|
sudo apt-get update
|
||||||
shellcheck --severity=warning $(git ls-files '*.sh')
|
sudo apt-get install --yes --no-install-recommends shellcheck jq
|
||||||
- name: Python tests
|
- name: Check capabilities
|
||||||
run: for file in scripts/test-*.py; do python3 "$file"; done
|
run: bash scripts/check-capabilities.sh
|
||||||
- name: Build
|
- name: Validate Bash syntax
|
||||||
env:
|
run: git ls-files -z '*.sh' | xargs -0 -r -n1 bash -n
|
||||||
REQUIRE_CODEX_SCHEMA: 'false'
|
- name: Lint Bash
|
||||||
run: bash scripts/build.sh --summary
|
run: shellcheck --severity=warning $(git ls-files '*.sh')
|
||||||
- name: Bash tests
|
|
||||||
run: |
|
|
||||||
bash scripts/test-build-validation.sh --summary
|
|
||||||
bash scripts/test-install-guards.sh --summary
|
|
||||||
bash scripts/test-plugin-selection.sh --summary
|
|
||||||
bash scripts/test-quick-update.sh --summary
|
|
||||||
bash scripts/test-shell-packages.sh --summary
|
|
||||||
bash scripts/test-managed-install.sh --summary
|
|
||||||
Reference in new issue
Block a user