chore(deps): update dependency suzuki-shunsuke/ghalint to v1.2.1 #4283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
run-install-test: | |
permissions: {} | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: ["ubuntu", "debian"] | |
container: | |
image: mcr.microsoft.com/vscode/devcontainers/base:${{ matrix.distro }} | |
env: | |
CODESPACES: true | |
REMOTE_CONTAINERS: true | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
# install for lint and test | |
- uses: ./.github/actions/run-install | |
- run: | | |
git config --global --add safe.directory "${GITHUB_WORKSPACE}" | |
- name: setup | |
run: | | |
make setup | |
shell: bash -leo pipefail {0} | |
- name: mise env | |
uses: ./.github/actions/mise-hook-env | |
- name: lint | |
run: | | |
make lint | |
shell: bash -leo pipefail {0} | |
- name: test | |
run: | | |
make test | |
run-install-vm: | |
permissions: {} | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-24.04 | |
- ubuntu-22.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: ./.github/actions/run-install | |
super-linter: | |
permissions: | |
statuses: write | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
# for super-linter | |
fetch-depth: 0 | |
- name: load env | |
run: | | |
grep -v '#' .superlinterenv >> "$GITHUB_ENV" | |
- uses: super-linter/super-linter/slim@85f7611e0f7b53c8573cca84aa0ed4344f6f6a4d # v6 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
renovate: | |
permissions: | |
contents: read | |
pull-requests: read | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: ./.github/actions/run-install # for node. | |
- name: setup | |
run: | | |
make setup | |
shell: bash -leo pipefail {0} | |
- name: mise env | |
uses: ./.github/actions/mise-hook-env | |
- name: test renovate config | |
run: | | |
LOG_LEVEL=debug GH_TOKEN=${GH_TOKEN} make renovate | |
shell: bash -leo pipefail {0} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
check-ci-result: | |
needs: [run-install-test, run-install-vm, super-linter, renovate] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: always() | |
steps: | |
- name: check results | |
run: | | |
FAILURE_JOBS=$(echo "${NEEDS_JSON}" | jq -r 'to_entries | map(select(.value.result != "success")) | map(.key + " " + .value.result) | join("\n")') | |
if [ -n "${FAILURE_JOBS}" ]; then | |
echo "The following jobs failed: ${FAILURE_JOBS}" | |
exit 1 | |
fi | |
env: | |
NEEDS_JSON: ${{ toJSON(needs) }} |