Skip to content

Commit

Permalink
build: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aacebedo committed Jan 27, 2024
1 parent 48f483a commit 26d9c3d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Integration workflow

on:
workflow_call:

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install devbox
uses: jetpack-io/[email protected]
with:
devbox-version: 0.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
10 changes: 10 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PR workflow

on:
pull_request:
branches:
- master

jobs:
pr-workflow:
uses: ./.github/workflows/ci.yml

0 comments on commit 26d9c3d

Please sign in to comment.