Skip to content

Commit

Permalink
ci(build): add GitHub Actions workflow for build process
Browse files Browse the repository at this point in the history
This commit introduces a new continuous integration workflow that gets triggered on every push to the repository. The 'Build' workflow, defined in `.github/workflows/build.yml`, sets up a job that runs on the latest Ubuntu runner. It consists of the following steps:

- Checking out the codebase using `actions/checkout@v3`.
- Installing `devbox` via the `jetpack-io/[email protected]`.
- Testing the `devbox` installation with a basic echo command.
- Executing the build process through `devbox`.
- Running a generate step, likely related to code or artifact generation.
- Finally, validating the changes by checking if there's any uncommitted difference in the repository state, which might mean generated files are not committed or unexpected changes happened.

The introduction of this workflow automates the testing, building, generating, and validation processes, ensuring that every push is vetted through these steps.

Signed-off-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
kakkoyun committed Dec 7, 2023
1 parent fdcb3da commit fbcc134
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on: push

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

- name: Install devbox
uses: jetpack-io/[email protected]

- name: Test devbox
run: devbox run -- echo "done!"

- name: Build
run: devbox run build

- name: Generate
run: devbox run generate

- name: Validate
run: git diff --exit-code --color

0 comments on commit fbcc134

Please sign in to comment.