Update cachix #102
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: 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 |