Update Swiper Params #16
This file contains hidden or 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: "Lint" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| jobs: | |
| lint: | |
| name: "Lint" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| if: ${{ !contains(github.event.head_commit.message, '#nolint') }} | |
| steps: | |
| - name: "Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "Setup Node 22" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| #cache: npm | |
| - name: "Install" | |
| id: install | |
| run: | | |
| npm install | |
| #- name: "ESLint" | |
| # if: ${{ !cancelled() }} | |
| # run: | | |
| # npm run lint | |
| - name: "Prettier" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| npm run prettier | |
| - name: "Yamllint" | |
| if: ${{ !cancelled() }} | |
| env: | |
| CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}" | |
| run: | | |
| echo "::group::List Files" | |
| yamllint -d '${{ env.CONFIG }}' --list-files . | |
| echo "::endgroup::" | |
| yamllint -d '${{ env.CONFIG }}' . | |
| - name: "Actionlint" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| echo "::group::Download" | |
| loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:') | |
| echo "loc: ${loc}" | |
| tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n') | |
| echo "tag: ${tag}" | |
| url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz" | |
| echo "url: ${url}" | |
| curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint | |
| file "${RUNNER_TEMP}/actionlint" | |
| "${RUNNER_TEMP}/actionlint" --version | |
| echo "::endgroup::" | |
| "${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes= |