feat: run e2e tests on github actions #1
Workflow file for this run
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: Setup Go environment | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.0' | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y protoc-gen-go | |
- name: Install go dependencies | |
run: make install-deps | |
- name: Build | |
run: make build | |
- name: Test e2e | |
run: make e2e | |
- name: Test e2e (cached) | |
run: make e2e | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: go-generate-fast | |
path: bin/go-generate-fast | |
retention-days: 7 |