Improve processes to streamline possible future daemonization #18198
Workflow file for this run
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
--- | |
################################################################################# | |
# Pipeline triggered on every pull request to check lint compliance | |
################################################################################# | |
name: Lint | |
env: | |
RUST_BACKTRACE: "1" | |
needs_nix_setup: false | |
on: | |
merge_group: | |
types: [checks_requested] | |
pull_request: | |
types: | |
- synchronize | |
- ready_for_review | |
concurrency: | |
group: ${{ github.head_ref }}-lint | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Linter | |
runs-on: self-hosted-hoprnet-bigger | |
timeout-minutes: 30 | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Checkout hoprnet repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
if: env.needs_nix_setup == true | |
uses: cachix/install-nix-action@v26 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v14 | |
if: env.needs_nix_setup == true | |
with: | |
name: hoprnet | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
env: | |
USER: runner | |
- name: Run linter | |
run: nix run .#check |