feat(mount): add max-write option and kernel readahead tuning #480
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
| --- | |
| # Github Actions release for rclone | |
| # -*- compile-command: "yamllint -f parsable personal-lint.yml" -*- | |
| name: Lint & Vulnerability Check | |
| defaults: | |
| run: | |
| shell: bash | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| # Trigger the workflow on push or pull request | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags: | |
| - '**' | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| manual: | |
| description: Manual run (bypass default conditions) | |
| type: boolean | |
| default: true | |
| jobs: | |
| lint: | |
| if: inputs.manual || (github.repository == 'darthshadow/rclone' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)) | |
| timeout-minutes: 30 | |
| name: "lint" | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Get runner parameters | |
| id: get-runner-parameters | |
| run: | | |
| echo "year-week=$(/bin/date -u "+%Y%V")" >> $GITHUB_OUTPUT | |
| echo "runner-os-version=$ImageOS" >> $GITHUB_OUTPUT | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '>=1.24.0-rc.1' | |
| check-latest: true | |
| cache: false | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| ~/.cache/golangci-lint | |
| key: golangci-lint-${{ steps.get-runner-parameters.outputs.runner-os-version }}-go${{ steps.setup-go.outputs.go-version }}-${{ steps.get-runner-parameters.outputs.year-week }}-${{ hashFiles('go.sum') }} | |
| restore-keys: golangci-lint-${{ steps.get-runner-parameters.outputs.runner-os-version }}-go${{ steps.setup-go.outputs.go-version }}-${{ steps.get-runner-parameters.outputs.year-week }}- | |
| - name: Code quality test (Linux) | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: latest | |
| skip-cache: true | |
| args: --verbose | |
| - name: Code quality test (macOS) | |
| uses: golangci/golangci-lint-action@v8 | |
| if: success() || failure() | |
| env: | |
| GOOS: "darwin" | |
| with: | |
| version: latest | |
| skip-cache: true | |
| - name: Install govulncheck | |
| if: success() || failure() | |
| run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
| - name: Scan for vulnerabilities | |
| run: govulncheck ./... |