Skip to content

Commit 5e4bc36

Browse files
committed
chores: add nix run .#ansible-test and .#check-system-module to github actions workflows
1 parent fc77a26 commit 5e4bc36

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/ansible-test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ansible Test
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/ansible-testing
7+
pull_request:
8+
branches:
9+
- feat/ansible-testing
10+
11+
jobs:
12+
ansible-test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: supabase/postgres/.github/actions/shared-checkout@HEAD
17+
18+
- name: Install nix
19+
uses: cachix/install-nix-action@v27
20+
with:
21+
install_url: https://releases.nixos.org/nix/nix-2.29.1/install
22+
extra_nix_config: |
23+
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
24+
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
25+
26+
- name: Run Ansible Test
27+
run: nix run .#ansible-test
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check System Manager
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/ansible-testing
7+
pull_request:
8+
branches:
9+
- feat/ansible-testing
10+
11+
jobs:
12+
check-system-manager:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: supabase/postgres/.github/actions/shared-checkout@HEAD
17+
18+
- name: Install nix
19+
uses: cachix/install-nix-action@v27
20+
with:
21+
install_url: https://releases.nixos.org/nix/nix-2.29.1/install
22+
extra_nix_config: |
23+
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
24+
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
25+
26+
- name: Run check-system-manager
27+
run: nix run .#check-system-manager

0 commit comments

Comments
 (0)