mirror of
https://github.com/logos-co/logos-dev-boost.git
synced 2026-08-30 17:41:12 +00:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, main]
|
|
pull_request:
|
|
branches: [master, main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: logos-co
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Build logos-dev-boost CLI
|
|
run: nix build -L
|
|
|
|
scaffold-tests:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
type:
|
|
- module
|
|
- ui-qml
|
|
- ui-qml-backend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: logos-co
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
# git is needed inside the scaffolded project so `nix build` can see
|
|
# the files (flakes only consider git-tracked files).
|
|
- name: Configure git identity for scaffold init
|
|
run: |
|
|
git config --global user.email "ci@logos.test"
|
|
git config --global user.name "Logos CI"
|
|
|
|
- name: Scaffold + build --type ${{ matrix.type }}
|
|
run: ./tests/run-scaffold-tests.sh ${{ matrix.type }}
|