sqlx queries #5
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
# This workflow runs whenever a PR is opened or updated, or a commit is pushed to master. | |
# It runs several checks: | |
# - fmt: checks that the code is formatted according to rustfmt | |
# - clippy: checks that the code does not contain any clippy warnings | |
name: Checks | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. | |
# This Ensures that we don't waste CI time, and returns results quicker. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
checks: | |
name: nix flake check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-24.11 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: cs2kz | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: run checks | |
run: nix flake check .# | |
- uses: DeterminateSystems/flake-checker-action@main |