Bump opentelemetry from 0.21.0 to 0.22.0 #100
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: Nix Lints | |
on: | |
push: | |
paths: | |
# Run if workflow changes | |
- '.github/workflows/nix-lints.yml' | |
# Run on changed flake | |
- 'flake.nix' | |
- 'flake.lock' | |
branches: | |
- main | |
pull_request: | |
branches: main | |
# Run manually | |
workflow_dispatch: | |
jobs: | |
nix_fmt: | |
name: Nix format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
- name: Cache /nix/store | |
uses: actions/cache@v3 | |
with: | |
path: /nix/store | |
key: ${{ runner.os }}-${{ hashFiles('flake.*') }}-${{ hashFiles('.github/workflows/web-api-ci.yml') }} | |
- name: Check nix formatting | |
run: nix fmt --accept-flake-config -- --check . | |
nix_dead_code: | |
name: Nix dead code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
- name: Cache /nix/store | |
uses: actions/cache@v3 | |
with: | |
path: /nix/store | |
key: ${{ runner.os }}-${{ hashFiles('flake.*') }}-${{ hashFiles('.github/workflows/web-api-ci.yml') }} | |
- name: Check for dead nix code | |
run: nix run github:astro/deadnix -- . |