33 lines
687 B
YAML
33 lines
687 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v22
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- name: Run flake check
|
|
run: nix flake check --accept-flake-config
|
|
|
|
- name: Build packages
|
|
run: nix build .#opencode-jailed .#claude-jailed
|
|
|
|
- name: Run tests
|
|
run: nix build .#checks.${{ runner.system }}.*
|