build: add github actions #2
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 | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install devbox | |
uses: jetpack-io/[email protected] | |
with: | |
version: v0.8.5 | |
enable-cache: 'true' | |
- name: Test | |
run: devbox run test | |
- name: Lint | |
run: devbox run lint | |
- name: Build | |
run: devbox run --env GOARCH=amd64 build | |
devbox run --env GOARCH=arm build |