Change code action keybind to <Leader>c
#47
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: "Build" | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: qed | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: true | |
- name: "Build" | |
run: nix --print-build-logs build . | |
- name: "Cachix: Push and pin as 'main'" | |
run: | | |
cachix push qed result | |
cachix pin qed main result --keep-revisions 3 | |
if: github.event_name == 'push' && github.repository == 'queezle42/qed' && github.ref == 'refs/heads/main' | |
code-style: | |
name: "Code style" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: qed | |
skipPush: true | |
- name: "Code style check (stylua)" | |
run: nix --print-build-logs build --no-link .#stylua |