feat: use nix in github actions #32
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 and Test E2E | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Nix | |
uses: cachix/install-nix-action@v27 | |
- name: Install go dependencies | |
run: make install-deps | |
- name: Build | |
run: make build | |
- name: Print go binaries in home | |
run: ls -la $HOME/go/bin | |
- name: Test e2e | |
run: make e2e | |
env: | |
PATH: ${{ runner.os }}-go/bin:$PATH | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: go-generate-fast | |
path: bin/go-generate-fast | |
retention-days: 7 |