Skip to content

Commit

Permalink
Merge pull request #37 from 21CSM/build-ci
Browse files Browse the repository at this point in the history
ci: add build.yml for running ci on pushes
  • Loading branch information
21CSM authored Sep 21, 2024
2 parents cfef52f + 882efdb commit 80ca821
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build
on:
push:
branches: [develop-firebase, main]
workflow_dispatch:

jobs:
flake-health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Flake Health
uses: DeterminateSystems/flake-checker-action@v9

build:
runs-on: ubuntu-latest
needs: flake-health-check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Run Nix Flake Checks
run: nix flake check
- name: Install Dependencies
run: nix develop -c pnpm install
- name: Run Unit Tests
run: nix develop -c pnpm run test:unit
- name: Run Integration Tests
run: nix develop -c pnpm run test:integration
- name: Build Project
run: nix develop -c pnpm run build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build

0 comments on commit 80ca821

Please sign in to comment.