Skip to content

Update cachix

Update cachix #102

Workflow file for this run

name: ci
on:
push:
branches: '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: TimonVS/[email protected]
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Tests
run: nix develop -c go test -v ./... -test.short
- name: Formatter
run: nix develop -c go fmt ./... || true
- name: Linter
run: nix develop -c golangci-lint run || true
- name: Build
run: nix develop -c go build
- name: Push changes
uses: stefanzweifel/[email protected]
with:
commit_message: Run formatter/linter