Add sysinfo dependency and refactor device linking logic #2
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
# Run all tests, linters, code analysis and other QA tasks on | |
# every push to master and PRs. | |
# | |
# To SSH into the runner to debug a failure, add the following step before | |
# the failing step | |
# - uses: mxschmitt/action-tmate@v3 | |
# with: | |
# install-dependencies: false | |
name: Unit Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
# Prevent multiple jobs running after fast subsequent pushes | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
dependabot: | |
needs: [test] | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} | |
steps: | |
- id: metadata | |
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- run: | | |
gh pr review --approve "$PR_URL" | |
gh pr merge --squash --auto "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
test: | |
name: Tests | |
runs-on: namespace-profile-pareto-linux | |
steps: | |
- uses: namespacelabs/nscloud-checkout-action@v5 | |
- uses: ./.github/actions/devenv | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- run: devenv test -d |